blk-mq-sched: ask scheduler for work, if we failed dispatching leftovers
authorJens Axboe <axboe@fb.com>
Fri, 17 Feb 2017 18:39:26 +0000 (11:39 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 17 Feb 2017 18:39:26 +0000 (11:39 -0700)
commite3aa75370104e105c6db6fa748b0f581ef03a083
tree76cae3fdc20cab37fdfc3f1fc25bd03910374f21
parent6241439fd2554c1abcc25010671d194a97d0482d
blk-mq-sched: ask scheduler for work, if we failed dispatching leftovers

Usually we don't ask the scheduler for work, if we already have
leftovers on the dispatch list. This is done to leave work on
the scheduler side for as long as possible, for proper merging.
But if we do have work leftover but didn't dispatch anything,
then we should ask the scheduler since we could potentially
issue requests from that.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sched.c