blk-mq: factor out a few helpers from __blk_mq_try_issue_directly
authorMike Snitzer <snitzer@redhat.com>
Wed, 17 Jan 2018 16:25:56 +0000 (11:25 -0500)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Jan 2018 16:46:50 +0000 (09:46 -0700)
commit0f95549c0ea1e8075ae049202088b2c6a0cb40ad
treec1f1bf9a15df938a4ac525f7d02efd17f825a71a
parent7df938fbc4ee641e70e05002ac67c24b19e86e74
blk-mq: factor out a few helpers from __blk_mq_try_issue_directly

No functional change.  Just makes code flow more logically.

In following commit, __blk_mq_try_issue_directly() will be used to
return the dispatch result (blk_status_t) to DM.  DM needs this
information to improve IO merging.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c