diff options
| author | Chris Leech <[email protected]> | 2023-03-10 01:09:13 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-03-15 01:20:55 +0000 |
| commit | 00e885efcfbb8712d3e1bfc1ae30639c15ca1d3b (patch) | |
| tree | 92eb3e277ed07c27d06e2d06b9b61523935cb87d /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | loop: Fix use-after-free issues (diff) | |
| download | kernel-00e885efcfbb8712d3e1bfc1ae30639c15ca1d3b.tar.gz kernel-00e885efcfbb8712d3e1bfc1ae30639c15ca1d3b.zip | |
blk-mq: fix "bad unlock balance detected" on q->srcu in __blk_mq_run_dispatch_ops
The 'q' parameter of the macro __blk_mq_run_dispatch_ops may not be one
local variable, such as, it is rq->q, then request queue pointed by
this variable could be changed to another queue in case of
BLK_MQ_F_TAG_QUEUE_SHARED after 'dispatch_ops' returns, then
'bad unlock balance' is triggered.
Fixes the issue by adding one local variable for doing srcu lock/unlock.
Fixes: 2a904d00855f ("blk-mq: remove hctx_lock and hctx_unlock")
Cc: Marco Patalano <[email protected]>
Signed-off-by: Chris Leech <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
