diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2021-05-13 10:15:29 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-19 10:08:30 +0200 |
| commit | 3c1db90ae0d0210c0695f63f77458124d83508b2 (patch) | |
| tree | db95c46a79f5ecaa05240d3bbbf5fc6284560234 /include/linux | |
| parent | 1c4962df938891af9ab4775f5224ef8601764107 (diff) | |
| download | linux-3c1db90ae0d0210c0695f63f77458124d83508b2.tar.gz linux-3c1db90ae0d0210c0695f63f77458124d83508b2.tar.bz2 linux-3c1db90ae0d0210c0695f63f77458124d83508b2.zip | |
blk-mq: Swap two calls in blk_mq_exit_queue()
[ Upstream commit 630ef623ed26c18a457cdc070cf24014e50129c2 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
