aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2021-05-13 17:15:29 +0000
committerJens Axboe <[email protected]>2021-05-14 14:59:31 +0000
commit630ef623ed26c18a457cdc070cf24014e50129c2 (patch)
tree56a81c02b4012c577280c5728c7e683bb3abdf4f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentblk-mq: plug request for shared sbitmap (diff)
downloadkernel-630ef623ed26c18a457cdc070cf24014e50129c2.tar.gz
kernel-630ef623ed26c18a457cdc070cf24014e50129c2.zip
blk-mq: Swap two calls in blk_mq_exit_queue()
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 <[email protected]> Cc: Ming Lei <[email protected]> Cc: Hannes Reinecke <[email protected]> Fixes: 0d2602ca30e4 ("blk-mq: improve support for shared tags maps") Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions