mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
committed by
Jens Axboe
parent
a7c50c9404
commit
b1f866b013
@@ -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();
|
||||
|
Reference in New Issue
Block a user