aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-01-27 07:05:48 +0000
committerJens Axboe <[email protected]>2022-02-02 14:50:00 +0000
commitb1f866b013e6e5583f2f0bf4a61d13eddb9a1799 (patch)
treefcff061e1287d6748551cadc3346aa43ba2ca2d7 /fs/fs-writeback.c
parentblock: pass a block_device and opf to bio_reset (diff)
downloadkernel-b1f866b013e6e5583f2f0bf4a61d13eddb9a1799.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
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();