]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
blk-mq: Record active_queues_shared_sbitmap per tag_set for when using shared sbitmap
authorJohn Garry <john.garry@huawei.com>
Wed, 19 Aug 2020 15:20:27 +0000 (23:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 3 Sep 2020 21:20:47 +0000 (15:20 -0600)
commitf1b49fdc1c64db110aa1315831e5fe0f8599fa56
tree3326f32212adf701cd0b0882f1e0193ac22dad1a
parentbccf5e26d99c28980bd6ced474422a1b18402263
blk-mq: Record active_queues_shared_sbitmap per tag_set for when using shared sbitmap

For when using a shared sbitmap, no longer should the number of active
request queues per hctx be relied on for when judging how to share the tag
bitmap.

Instead maintain the number of active request queues per tag_set, and make
the judgement based on that.

Originally-from: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Tested-by: Don Brace<don.brace@microsemi.com> #SCSI resv cmds patches used
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c
block/blk-mq.c
block/blk-mq.h
include/linux/blk-mq.h
include/linux/blkdev.h