blk-mq-sched: don't add flushes to the head of requeue queue
authorJens Axboe <axboe@fb.com>
Fri, 17 Feb 2017 18:37:14 +0000 (11:37 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 17 Feb 2017 18:37:14 +0000 (11:37 -0700)
commitaaf7b0044625d9e6b4fb59c8ddb519753dcdb4a3
tree6e144cd49cba4952cfe0f4508ffb4b00a7670130
parent11e3c3dddd649e1d94dbeaa3b47a0b5861a16c67
blk-mq-sched: don't add flushes to the head of requeue queue

If we are currently out of driver tags, we don't want to add a
new flush (without a tag) to the head of the requeue list. We
want to add it to the back, behind the others that are
potentially also waiting for a tag.

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