]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 28 May 2014 15:49:23 +0000 (09:49 -0600)
commit782a219a1838515a938bdebce372aa89fc8d8065
tree465934c4f1fb0687da5d862e5221d54c0d34eb2f
parentf5f5a178e17d3c521ec4b89329d6e43e4eab5b76
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