Skip to content

Commit

Permalink
blk-mq: have blk_mq_dispatch_rq_list() return if we queued IO or not
Browse files Browse the repository at this point in the history
Currently we're almost there, but if we dispatch nothing, then we
still return success.

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
  • Loading branch information
Jens Axboe committed Feb 17, 2017
1 parent b410aff commit 2aa0f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hctx, struct list_head *list)
blk_mq_run_hw_queue(hctx, true);
}

return ret != BLK_MQ_RQ_QUEUE_BUSY;
return queued != 0;
}

static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx)
Expand Down

0 comments on commit 2aa0f21

Please sign in to comment.