blk-mq: remove blk_mq_wait_for_tags
authorChristoph Hellwig <hch@lst.de>
Tue, 27 May 2014 18:59:48 +0000 (20:59 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:49 +0000 (12:54 -0600)
commite55b6f5c50d2a47cbb98679eda9fb98f3a90f2c1
treea2a677bff8a47dac2ee38d0dca626213f9c98a4a
parent1d9edd1d834c28c32e95917cfe135e1bee6bddeb
blk-mq: remove blk_mq_wait_for_tags

The current logic for blocking tag allocation is rather confusing, as we
first allocated and then free again a tag in blk_mq_wait_for_tags, just
to attempt a non-blocking allocation and then repeat if someone else
managed to grab the tag before us.

Instead change blk_mq_alloc_request_pinned to simply do a blocking tag
allocation itself and use the request we get back from it.

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