diff options
author | Sarthak Garg <[email protected]> | 2020-05-07 21:45:33 +0530 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2020-05-08 07:30:11 +0200 |
commit | 39a22f73744d5baee30b5f134ae2e30b668b66ed (patch) | |
tree | 3ac8a3730cd137c943611633d5ad8bf35165164b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e6bfb1bf00852b55f4c771f47ae67004c04d3c87 (diff) |
mmc: core: Fix recursive locking issue in CQE recovery path
Consider the following stack trace
-001|raw_spin_lock_irqsave
-002|mmc_blk_cqe_complete_rq
-003|__blk_mq_complete_request(inline)
-003|blk_mq_complete_request(rq)
-004|mmc_cqe_timed_out(inline)
-004|mmc_mq_timed_out
mmc_mq_timed_out acquires the queue_lock for the first
time. The mmc_blk_cqe_complete_rq function also tries to acquire
the same queue lock resulting in recursive locking where the task
is spinning for the same lock which it has already acquired leading
to watchdog bark.
Fix this issue with the lock only for the required critical section.
Cc: <[email protected]>
Fixes: 1e8e55b67030 ("mmc: block: Add CQE support")
Suggested-by: Sahitya Tummala <[email protected]>
Signed-off-by: Sarthak Garg <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions