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>
Showing
- block/blk-core.c 1 addition, 1 deletionblock/blk-core.c
- block/blk-exec.c 1 addition, 1 deletionblock/blk-exec.c
- block/blk-flush.c 1 addition, 1 deletionblock/blk-flush.c
- block/blk-mq-sched.c 58 additions, 0 deletionsblock/blk-mq-sched.c
- block/blk-mq-sched.h 6 additions, 39 deletionsblock/blk-mq-sched.h
- block/blk-mq-tag.c 7 additions, 1 deletionblock/blk-mq-tag.c
- block/blk-mq.c 13 additions, 12 deletionsblock/blk-mq.c
- block/blk-mq.h 2 additions, 0 deletionsblock/blk-mq.h
Loading
Please register or sign in to comment