summaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback/blkback.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2014-02-11 17:27:13 +0100
committerJens Axboe <axboe@fb.com>2014-02-11 17:34:07 +0100
commit1e93b8c274268038c93763dca65a73b42a081e10 (patch)
tree00501165614b830295c7b8a97f62b00abc9b702c /drivers/block/xen-blkback/blkback.c
parentblock: Fix cloning of discard/write same bios (diff)
downloadlinux-1e93b8c274268038c93763dca65a73b42a081e10.tar.xz
linux-1e93b8c274268038c93763dca65a73b42a081e10.zip
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>
Diffstat (limited to 'drivers/block/xen-blkback/blkback.c')
0 files changed, 0 insertions, 0 deletions