Revision 630ef623ed26c18a457cdc070cf24014e50129c2 authored by Bart Van Assche on 13 May 2021, 17:15:29 UTC, committed by Jens Axboe on 14 May 2021, 14:59:31 UTC
If a tag set is shared across request queues (e.g. SCSI LUNs) then the
block layer core keeps track of the number of active request queues in
tags->active_queues. blk_mq_tag_busy() and blk_mq_tag_idle() update that
atomic counter if the hctx flag BLK_MQ_F_TAG_QUEUE_SHARED is set. Make
sure that blk_mq_exit_queue() calls blk_mq_tag_idle() before that flag is
cleared by blk_mq_del_queue_tag_set().

Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Fixes: 0d2602ca30e4 ("blk-mq: improve support for shared tags maps")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210513171529.7977-1-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 03f26d8
History
File Mode Size
index.rst -rw-r--r-- 367 bytes
leds-blinkm.rst -rw-r--r-- 2.0 KB
leds-class-flash.rst -rw-r--r-- 3.2 KB
leds-class-multicolor.rst -rw-r--r-- 3.0 KB
leds-class.rst -rw-r--r-- 7.2 KB
leds-el15203000.rst -rw-r--r-- 4.3 KB
leds-lm3556.rst -rw-r--r-- 3.0 KB
leds-lp3944.rst -rw-r--r-- 1.5 KB
leds-lp5521.rst -rw-r--r-- 2.9 KB
leds-lp5523.rst -rw-r--r-- 3.4 KB
leds-lp5562.rst -rw-r--r-- 3.6 KB
leds-lp55xx.rst -rw-r--r-- 6.7 KB
leds-mlxcpld.rst -rw-r--r-- 2.4 KB
leds-sc27xx.rst -rw-r--r-- 989 bytes
ledtrig-oneshot.rst -rw-r--r-- 1.5 KB
ledtrig-transient.rst -rw-r--r-- 6.9 KB
ledtrig-usbport.rst -rw-r--r-- 1.4 KB
uleds.rst -rw-r--r-- 1.2 KB

back to top