block: remove blk_needs_flush_plug
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Jan 2022 07:05:48 +0000 (08:05 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:50:00 +0000 (07:50 -0700)
commitb1f866b013e6e5583f2f0bf4a61d13eddb9a1799
treefcff061e1287d6748551cadc3346aa43ba2ca2d7
parenta7c50c940477bae89fb2b4f51bd969a2d95d7512
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>
fs/fs-writeback.c
include/linux/blkdev.h
kernel/exit.c
kernel/sched/core.c