summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2016-11-14 14:56:17 -0800
committerJens Axboe <axboe@fb.com>2016-11-14 15:58:44 -0700
commitb4a567e8114327518c09f5632339a5954ab975a3 (patch)
tree7d16a513637b92f3bdc4a509145a246740279064 /drivers/block
parentc6463c651d7ab599a4878115723a5bcb6ae5b470 (diff)
downloadop-kernel-dev-b4a567e8114327518c09f5632339a5954ab975a3.zip
op-kernel-dev-b4a567e8114327518c09f5632339a5954ab975a3.tar.gz
loop: return proper error from loop_queue_rq()
->queue_rq() should return one of the BLK_MQ_RQ_QUEUE_* constants, not an errno. f4aa4c7bbac6 ("block: loop: convert to per-device workqueue") Signed-off-by: Omar Sandoval <osandov@fb.com> Cc: stable@vger.kernel.org Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index fa1b7a9..4af8187 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1646,7 +1646,7 @@ static int loop_queue_rq(struct blk_mq_hw_ctx *hctx,
blk_mq_start_request(bd->rq);
if (lo->lo_state != Lo_bound)
- return -EIO;
+ return BLK_MQ_RQ_QUEUE_ERROR;
switch (req_op(cmd->rq)) {
case REQ_OP_FLUSH:
OpenPOWER on IntegriCloud