]> git.baikalelectronics.ru Git - kernel.git/commit
bfq: Allow current waker to defend against a tentative one
authorJan Kara <jack@suse.cz>
Thu, 19 May 2022 10:52:30 +0000 (12:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 19 May 2022 12:52:36 +0000 (06:52 -0600)
commitc5ac56bb6110e42e79d3106866658376b2e48ab9
treeb0deddac8e7dcbedc254aab05e0500842a905ead
parentf950667356ce90a41b446b726d4595a10cb65415
bfq: Allow current waker to defend against a tentative one

The code in bfq_check_waker() ignores wake up events from the current
waker. This makes it more likely we select a new tentative waker
although the current one is generating more wake up events. Treat
current waker the same way as any other process and allow it to reset
the waker detection logic.

Fixes: 71217df39dc6 ("block, bfq: make waker-queue detection more robust")
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220519105235.31397-2-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c