blk-mq-sched: move actual dispatching into one helper
authorMing Lei <ming.lei@redhat.com>
Sat, 14 Oct 2017 09:22:26 +0000 (17:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Nov 2017 14:20:02 +0000 (08:20 -0600)
commitcaf8eb0d604a0eaeb8111eb4d36853a6d08eebe7
tree0387660a11eac166a7e92b982bbc89945b29d65c
parent5e3d02bbafad38975099b5848f5ebadedcf7bb7e
blk-mq-sched: move actual dispatching into one helper

So that it becomes easy to support to dispatch from sw queue in the
following patch.

No functional change.

Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Suggested-by: Christoph Hellwig <hch@lst.de> # for simplifying dispatch logic
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c