Christoph Hellwig 1e93b8c274 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>
2014-02-11 09:34:07 -07:00
..
2013-11-08 08:59:58 -07:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2014-02-10 09:29:00 -07:00
2014-01-08 13:05:09 -08:00
2014-02-10 09:27:31 -07:00
2013-11-23 22:33:47 -08:00