]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:24:35 +0000 (09:24 +0200)
commit1ea36c2549cfa068914498177e7e83cd04a29606
treee34245a5cc31bc3d1f0ec193c032644585695b56
parentb86cb5e4f30ea851588dbc77e29c41a263532dc3
bfq: Allow current waker to defend against a tentative one

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit c5ac56bb6110e42e79d3106866658376b2e48ab9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
block/bfq-iosched.c