Skip to content
Commit 6793a3c6 authored by Tian Lan's avatar Tian Lan Committed by Greg Kroah-Hartman
Browse files

blk-mq: fix race condition in active queue accounting

[ Upstream commit 3e94d54e ]

If multiple CPUs are sharing the same hardware queue, it can
cause leak in the active queue counter tracking when __blk_mq_tag_busy()
is executed simultaneously.

Fixes: ee78ec10

 ("blk-mq: blk_mq_tag_busy is no need to return a value")
Signed-off-by: default avatarTian Lan <tian.lan@twosigma.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarJohn Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20230522210555.794134-1-tilan7663@gmail.com
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fe735073
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment