summaryrefslogtreecommitdiff
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-01-27 08:05:48 +0100
committerJens Axboe <axboe@kernel.dk>2022-02-02 07:50:00 -0700
commitb1f866b013e6e5583f2f0bf4a61d13eddb9a1799 (patch)
treefcff061e1287d6748551cadc3346aa43ba2ca2d7 /fs/fs-writeback.c
parenta7c50c940477bae89fb2b4f51bd969a2d95d7512 (diff)
downloadlwn-b1f866b013e6e5583f2f0bf4a61d13eddb9a1799.tar.gz
lwn-b1f866b013e6e5583f2f0bf4a61d13eddb9a1799.zip
block: remove blk_needs_flush_plug
blk_needs_flush_plug fails to account for the cb_list, which needs flushing as well. Remove it and just check if there is a plug instead of poking into the internals of the plug structure. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220127070549.1377856-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index f8d7fe6db989..f4ce38f6fc31 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -2301,7 +2301,7 @@ void wakeup_flusher_threads(enum wb_reason reason)
/*
* If we are expecting writeback progress we must submit plugged IO.
*/
- if (blk_needs_flush_plug(current))
+ if (current->plug)
blk_flush_plug(current->plug, true);
rcu_read_lock();