]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: Add blk_mq_tag_update_sched_shared_sbitmap()
authorJohn Garry <john.garry@huawei.com>
Tue, 5 Oct 2021 10:23:34 +0000 (18:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:02 +0000 (06:17 -0600)
commitdd122b5b0d13b140e6dd4edc261fab9302ee438e
tree88a38c33c253aa4947d64a25e3632f15db3d9f59
parentbcb8e99946fa7c956a99f3685e60abb7ea73fd74
blk-mq: Add blk_mq_tag_update_sched_shared_sbitmap()

Put the functionality to update the sched shared sbitmap size in a common
function.

Since the same formula is always used to resize, and it can be got from
the request queue argument, so just pass the request queue pointer.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/1633429419-228500-10-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c