blk-mq: fix regression from commit 624dbe475416
authorJens Axboe <axboe@fb.com>
Wed, 4 Jun 2014 15:11:53 +0000 (09:11 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 4 Jun 2014 15:11:53 +0000 (09:11 -0600)
commitf899fed4421d6b098ed6a9d69303c70e590bf2c0
tree0a0264c0cd6169aa900f6de1f44fbc0f6c7ddd9d
parentff87bcec197774f938fbd1fe996068005f3dfb3c
blk-mq: fix regression from commit 624dbe475416

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 19c5d84f14d2.

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>
block/blk-mq.c