Skip to content

Commit

Permalink
loop: return proper error from loop_queue_rq()
Browse files Browse the repository at this point in the history
->queue_rq() should return one of the BLK_MQ_RQ_QUEUE_* constants, not
an errno.

f4aa4c7 ("block: loop: convert to per-device workqueue")
Signed-off-by: Omar Sandoval <[email protected]>
Cc: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
osandov authored and axboe committed Nov 14, 2016
1 parent c6463c6 commit b4a567e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b4a567e

Please sign in to comment.