summaryrefslogtreecommitdiff
path: root/kernel/exit.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 /kernel/exit.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 'kernel/exit.c')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index b00a25bb4ab9..11fc6c9df9f2 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -735,7 +735,7 @@ void __noreturn do_exit(long code)
struct task_struct *tsk = current;
int group_dead;
- WARN_ON(blk_needs_flush_plug(tsk));
+ WARN_ON(tsk->plug);
/*
* If do_dead is called because this processes oopsed, it's possible