]> git.baikalelectronics.ru Git - kernel.git/commit
bfq: Avoid false marking of bic as stably merged
authorJan Kara <jack@suse.cz>
Fri, 1 Apr 2022 10:27:42 +0000 (12:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:34:02 +0000 (19:34 -0600)
commit081bf3a89b7cf8cf39a7dc24e294944f52dfb2d2
treec06413cc3d5d353d1fc45aaf58c92db0d3867794
parentd0193e3124de9193eeb4693fff515b47e704b85a
bfq: Avoid false marking of bic as stably merged

bfq_setup_cooperator() can mark bic as stably merged even though it
decides to not merge its bfqqs (when bfq_setup_merge() returns NULL).
Make sure to mark bic as stably merged only if we are really going to
merge bfqqs.

CC: stable@vger.kernel.org
Tested-by: "yukuai (C)" <yukuai3@huawei.com>
Fixes: 02d44fdaf5f6 ("block, bfq: merge bursts of newly-created queues")
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220401102752.8599-1-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c