mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 06:41:39 +00:00
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>
This commit is contained in:
parent
bccf5e26d9
commit
f1b49fdc1c
5 changed files with 41 additions and 10 deletions
|
@ -252,6 +252,7 @@ struct blk_mq_tag_set {
|
|||
unsigned int timeout;
|
||||
unsigned int flags;
|
||||
void *driver_data;
|
||||
atomic_t active_queues_shared_sbitmap;
|
||||
|
||||
struct sbitmap_queue __bitmap_tags;
|
||||
struct sbitmap_queue __breserved_tags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue