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.2 KB |
Makefile | -rw-r--r-- | 629 bytes |
addr_list.c | -rw-r--r-- | 8.5 KB |
afs.h | -rw-r--r-- | 6.8 KB |
afs_cm.h | -rw-r--r-- | 1006 bytes |
afs_fs.h | -rw-r--r-- | 2.7 KB |
afs_vl.h | -rw-r--r-- | 5.1 KB |
cache.c | -rw-r--r-- | 1.8 KB |
callback.c | -rw-r--r-- | 4.6 KB |
cell.c | -rw-r--r-- | 23.7 KB |
cmservice.c | -rw-r--r-- | 16.0 KB |
dir.c | -rw-r--r-- | 53.6 KB |
dir_edit.c | -rw-r--r-- | 12.8 KB |
dir_silly.c | -rw-r--r-- | 7.3 KB |
dynroot.c | -rw-r--r-- | 8.7 KB |
file.c | -rw-r--r-- | 11.8 KB |
flock.c | -rw-r--r-- | 23.6 KB |
fs_operation.c | -rw-r--r-- | 5.5 KB |
fs_probe.c | -rw-r--r-- | 11.7 KB |
fsclient.c | -rw-r--r-- | 47.6 KB |
inode.c | -rw-r--r-- | 23.4 KB |
internal.h | -rw-r--r-- | 58.0 KB |
main.c | -rw-r--r-- | 6.3 KB |
misc.c | -rw-r--r-- | 4.6 KB |
mntpt.c | -rw-r--r-- | 5.1 KB |
proc.c | -rw-r--r-- | 16.3 KB |
protocol_uae.h | -rw-r--r-- | 6.8 KB |
protocol_yfs.h | -rw-r--r-- | 4.6 KB |
rotate.c | -rw-r--r-- | 13.0 KB |
rxrpc.c | -rw-r--r-- | 22.8 KB |
security.c | -rw-r--r-- | 11.7 KB |
server.c | -rw-r--r-- | 17.9 KB |
server_list.c | -rw-r--r-- | 2.9 KB |
super.c | -rw-r--r-- | 17.7 KB |
vl_alias.c | -rw-r--r-- | 9.2 KB |
vl_list.c | -rw-r--r-- | 8.1 KB |
vl_probe.c | -rw-r--r-- | 7.4 KB |
vl_rotate.c | -rw-r--r-- | 8.5 KB |
vlclient.c | -rw-r--r-- | 18.4 KB |
volume.c | -rw-r--r-- | 10.3 KB |
write.c | -rw-r--r-- | 22.5 KB |
xattr.c | -rw-r--r-- | 8.4 KB |
xdr_fs.h | -rw-r--r-- | 2.7 KB |
yfsclient.c | -rw-r--r-- | 47.5 KB |
Computing file changes ...