blk-flush: don't run queue for requests bypassing flush
authorMing Lei <ming.lei@redhat.com>
Thu, 2 Nov 2017 15:24:33 +0000 (23:24 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 4 Nov 2017 18:38:40 +0000 (12:38 -0600)
commit9c71c83c857e7a84a5be5a56ea88da7098f51db8
tree9219f2571abc4b117dcf3747bae1a6ea25129050
parent6d6f167ce74158903e7fc20dfbecf89c71aa1c00
blk-flush: don't run queue for requests bypassing flush

blk_insert_flush() should only insert request since run queue always
follows it.

In case of bypassing flush, we don't need to run queue because every
blk_insert_flush() follows one run queue.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-flush.c