]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: dont assume rq->errors is set when returning an error from ->queue_rq
authorChristoph Hellwig <hch@infradead.org>
Tue, 11 Feb 2014 16:27:13 +0000 (08:27 -0800)
committerJens Axboe <axboe@fb.com>
Tue, 11 Feb 2014 16:34:07 +0000 (09:34 -0700)
commit3aba2c8f83def9f155c3c49050db214a9cdf765d
tree00501165614b830295c7b8a97f62b00abc9b702c
parent57c73735494746ff55f5cd1320acd08622528e8f
blk-mq: dont assume rq->errors is set when returning an error from ->queue_rq

rq->errors never has been part of the communication protocol between drivers
and the block stack and most drivers will not have initialized it.

Return -EIO to upper layers when the driver returns BLK_MQ_RQ_QUEUE_ERROR
unconditionally.  If a driver want to return a different error it can easily
do so by returning success after calling blk_mq_end_io itself.

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