blk-mq: add blk_mq_requeue_request
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Apr 2014 07:44:57 +0000 (09:44 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 16 Apr 2014 20:15:25 +0000 (14:15 -0600)
commited0791b2f83cec4e77d88c4e9baabcebf9254a78
treea29b2fc04373c76a7889a3b4f1e43709a3f08fbc
parent2f268556567ebeb3538f99b9bdad177581439dcb
blk-mq: add blk_mq_requeue_request

This allows to requeue a request that has been accepted by ->queue_rq
earlier.  This is needed by the SCSI layer in various error conditions.

The existing internal blk_mq_requeue_request is renamed to
__blk_mq_requeue_request as it is a lower level building block for this
funtionality.

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