]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
bfq: Track whether bfq_group is still online
authorJan Kara <jack@suse.cz>
Fri, 1 Apr 2022 10:27:48 +0000 (12:27 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:25:08 +0000 (09:25 +0200)
commit4001101015db036341371d0ea55ea639c9ba07f5
treeeaf5a7a1ca3df516d4e87058d04ea30e37c739a2
parentad4d710a7d472a166e417158bd1cf6694912e919
bfq: Track whether bfq_group is still online

BugLink: https://bugs.launchpad.net/bugs/1981864
commit 09f871868080c33992cd6a9b72a5ca49582578fa upstream.

Track whether bfq_group is still online. We cannot rely on
blkcg_gq->online because that gets cleared only after all policies are
offlined and we need something that gets updated already under
bfqd->lock when we are cleaning up our bfq_group to be able to guarantee
that when we see online bfq_group, it will stay online while we are
holding bfqd->lock lock.

CC: stable@vger.kernel.org
Tested-by: "yukuai (C)" <yukuai3@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220401102752.8599-7-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
block/bfq-cgroup.c
block/bfq-iosched.h