blk-mq: idle all hardware contexts before freeing a queue
authorChristoph Hellwig <hch@lst.de>
Mon, 26 May 2014 09:45:02 +0000 (11:45 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:48 +0000 (12:54 -0600)
commited132e8039ebe8cf960f896f0f4a206824403f24
tree82147dd9d5d6f098e4f077eef46e3f143d4a0116
parent2b11ef3f2885423d120fd8e9e5bff2f675f08ea3
blk-mq: idle all hardware contexts before freeing a queue

Without this we can leak the active_queues reference if a command is
freed while it is considered active.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c