diff options
author | Ming Lei <ming.lei@redhat.com> | 2018-02-23 16:36:56 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-02-24 23:55:54 +0100 |
commit | 105976f517791aed3b11f8f53b308a2069d42055 (patch) | |
tree | 2c3d09d3f0e2495be37f67b29f45a5ca19089bf2 /block/kyber-iosched.c | |
parent | block: pass inclusive 'lend' parameter to truncate_inode_pages_range (diff) | |
download | linux-105976f517791aed3b11f8f53b308a2069d42055.tar.xz linux-105976f517791aed3b11f8f53b308a2069d42055.zip |
blk-mq: don't call io sched's .requeue_request when requeueing rq to ->dispatch
__blk_mq_requeue_request() covers two cases:
- one is that the requeued request is added to hctx->dispatch, such as
blk_mq_dispatch_rq_list()
- another case is that the request is requeued to io scheduler, such as
blk_mq_requeue_request().
We should call io sched's .requeue_request callback only for the 2nd
case.
Cc: Paolo Valente <paolo.valente@linaro.org>
Cc: Omar Sandoval <osandov@fb.com>
Fixes: bd166ef183c2 ("blk-mq-sched: add framework for MQ capable IO schedulers")
Cc: stable@vger.kernel.org
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/kyber-iosched.c')
0 files changed, 0 insertions, 0 deletions