mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 06:24:12 +00:00
blk-mq: fix regression from commit 624dbe4754
When the code was collapsed to avoid duplication, the recent patch
for ensuring that a queue is idled before free was dropped, which was
added by commit 19c5d84f14
.
Add back the blk_mq_tag_idle(), to ensure we don't leak a reference
to an active queue when it is freed.
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
ff87bcec19
commit
f899fed442
1 changed files with 2 additions and 0 deletions
|
@ -1552,6 +1552,8 @@ static void blk_mq_exit_hw_queues(struct request_queue *q,
|
||||||
if (i == nr_queue)
|
if (i == nr_queue)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
blk_mq_tag_idle(hctx);
|
||||||
|
|
||||||
if (set->ops->exit_hctx)
|
if (set->ops->exit_hctx)
|
||||||
set->ops->exit_hctx(hctx, i);
|
set->ops->exit_hctx(hctx, i);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue