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>
Mon, 30 Mar 2015 18:54:45 +0000 (12:54 -0600)
commitd3d4885fcc470528c40f6b42c4492908ad084012
tree762a9151cc7f4d844593af0c6ead85c9fdf050a1
parent727391eba6bf39903aa2fc190c16b68c73bd9843
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