]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit639a2c9cc54dd25d8e11167288a15849665d4b9c
treea29b2fc04373c76a7889a3b4f1e43709a3f08fbc
parent675e9288fb8b6f12a0c1cfa728e5c7b2a5fc475e
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