Thread (21 messages) 21 messages, 5 authors, 2017-11-24

Re: [PATCH 05/11] bdi: Unify bdi->wb_list handling for root wb_writeback

From: Tejun Heo <tj@kernel.org>
Date: 2017-03-21 16:21:44

On Mon, Mar 13, 2017 at 04:14:04PM +0100, Jan Kara wrote:
Currently root wb_writeback structure is added to bdi->wb_list in
bdi_init() and never removed. That is different from all other
wb_writeback structures which get added to the list when created and
removed from it before wb_shutdown().

So move list addition of root bdi_writeback to bdi_register() and list
removal of all wb_writeback structures to wb_shutdown(). That way a
wb_writeback structure is on bdi->wb_list if and only if it can handle
writeback and it will make it easier for us to handle shutdown of all
wb_writeback structures in bdi_unregister().

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help