]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-mq-sched.c
blk-mq-sched: bypass the scheduler for flushes entirely
authorOmar Sandoval <osandov@fb.com>
Thu, 2 Feb 2017 23:42:39 +0000 (15:42 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 2 Feb 2017 23:57:56 +0000 (16:57 -0700)
commit0cacba6cf8252438f8166bd3fa1c3370dd28a769
treec2b1dc91a0dadcc07be4e2fded65622d176c2720
parente17354961bb50931ec7b33f59c0713dcf98ac7d2
blk-mq-sched: bypass the scheduler for flushes entirely

There's a weird inconsistency that flushes are mostly hidden from the
scheduler, but it needs to be aware of them in ->insert_requests().
Instead of having every scheduler call blk_mq_sched_bypass_insert(),
let's do it in the common framework.

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