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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.0 KB |
Makefile | -rw-r--r-- | 385 bytes |
cache.c | -rw-r--r-- | 3.0 KB |
cnode.c | -rw-r--r-- | 4.8 KB |
coda_cache.h | -rw-r--r-- | 712 bytes |
coda_fs_i.h | -rw-r--r-- | 1.9 KB |
coda_int.h | -rw-r--r-- | 611 bytes |
coda_linux.c | -rw-r--r-- | 5.4 KB |
coda_linux.h | -rw-r--r-- | 2.6 KB |
coda_psdev.h | -rw-r--r-- | 3.3 KB |
dir.c | -rw-r--r-- | 14.4 KB |
file.c | -rw-r--r-- | 7.9 KB |
inode.c | -rw-r--r-- | 7.3 KB |
pioctl.c | -rw-r--r-- | 2.2 KB |
psdev.c | -rw-r--r-- | 10.2 KB |
symlink.c | -rw-r--r-- | 1.1 KB |
sysctl.c | -rw-r--r-- | 1.2 KB |
upcall.c | -rw-r--r-- | 24.3 KB |
Computing file changes ...