diff options
author | Tejun Heo <tj@kernel.org> | 2015-05-22 23:13:58 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-06-02 16:33:36 +0200 |
commit | cc395d7f1f7b9c740ab6d367ef1f6eb248595dff (patch) | |
tree | a99a691af5b57da0f323f9e50ecf68be0d97ff01 /block/deadline-iosched.c | |
parent | writeback: add wb_writeback_work->auto_free (diff) | |
download | linux-cc395d7f1f7b9c740ab6d367ef1f6eb248595dff.tar.xz linux-cc395d7f1f7b9c740ab6d367ef1f6eb248595dff.zip |
writeback: implement bdi_wait_for_completion()
If the completion of a wb_writeback_work can be waited upon by setting
its ->done to a struct completion and waiting on it; however, for
cgroup writeback support, it's necessary to issue multiple work items
to multiple bdi_writebacks and wait for the completion of all.
This patch implements wb_completion which can wait for multiple work
items and replaces the struct completion with it. It can be defined
using DEFINE_WB_COMPLETION_ONSTACK(), used for multiple work items and
waited for by wb_wait_for_completion().
Nobody currently issues multiple work items and this patch doesn't
introduce any behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/deadline-iosched.c')
0 files changed, 0 insertions, 0 deletions