bdi: Do not wait for cgwbs release in bdi_unregister()
authorJan Kara <jack@suse.cz>
Thu, 23 Mar 2017 00:36:58 +0000 (01:36 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 23 Mar 2017 02:11:30 +0000 (20:11 -0600)
commit4514451e79ae5baabb85d22ba3523602e59d5218
tree41e4e68dee3cd706fa2ceb026c27f9db6f5c78f7
parent5318ce7d46866e1dbc20ab9349b93753edba0b3e
bdi: Do not wait for cgwbs release in bdi_unregister()

Currently we wait for all cgwbs to get released in cgwb_bdi_destroy()
(called from bdi_unregister()). That is however unnecessary now when
cgwb->bdi is a proper refcounted reference (thus bdi cannot get
released before all cgwbs are released) and when cgwb_bdi_destroy()
shuts down writeback directly.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/backing-dev-defs.h
mm/backing-dev.c