]> git.baikalelectronics.ru Git - 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)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:34:27 +0000 (19:34 -0600)
commitd8c12522478ae93cb14071e8933658d2c05e29eb
treea3b0638b2025c12f20a24be5eae27860c5d366f1
parenta5108bc9351075b017e07e65cc1bc52dd447c069
bfq: Track whether bfq_group is still online

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>
block/bfq-cgroup.c
block/bfq-iosched.h