Commit 5aeac7c
blk-iocost: ioc_pd_free() shouldn't assume irq disabled
ioc_pd_free() grabs irq-safe ioc->lock without ensuring that irq is disabled
when it can be called with irq disabled or enabled. This has a small chance
of causing A-A deadlocks and triggers lockdep splats. Use irqsave operations
instead.
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 7caa471 ("blkcg: implement blk-iocost")
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 08fc1ab commit 5aeac7c
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2092 | 2092 | | |
2093 | 2093 | | |
2094 | 2094 | | |
| 2095 | + | |
2095 | 2096 | | |
2096 | 2097 | | |
2097 | | - | |
| 2098 | + | |
2098 | 2099 | | |
2099 | 2100 | | |
2100 | 2101 | | |
2101 | 2102 | | |
2102 | | - | |
| 2103 | + | |
2103 | 2104 | | |
2104 | 2105 | | |
2105 | 2106 | | |
| |||
0 commit comments