]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq-sched: add flush insertion into blk_mq_sched_insert_request()
authorJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 08:00:47 +0000 (01:00 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 16:03:14 +0000 (09:03 -0700)
commit9ec5d34992c223333e67d20b10bd892b2156409d
treeffed03cc3bd01143a8e43d6daca2288836a4a9e3
parent1c15277e607103074613c4ca4bcc52fff5567734
blk-mq-sched: add flush insertion into blk_mq_sched_insert_request()

Instead of letting the caller check this and handle the details
of inserting a flush request, put the logic in the scheduler
insertion function. This fixes direct flush insertion outside
of the usual make_request_fn calls, like from dm via
blk_insert_cloned_request().

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