summaryrefslogtreecommitdiff
path: root/block/blk-iocost.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2021-07-27 17:32:53 +0800
committerJens Axboe <axboe@kernel.dk>2021-07-27 16:44:38 -0600
commitb93af3055d6f32d3b0361cfdb110c9399c1241ba (patch)
tree6a0f83ecb4efae850ef4fc13dc98da2c707327f2 /block/blk-iocost.c
parent3ce6e1f662a910970880188ea7bfd00542bd3934 (diff)
downloadlinux-b93af3055d6f32d3b0361cfdb110c9399c1241ba.tar.gz
blk-mq-sched: Fix blk_mq_sched_alloc_tags() error handling
If the blk_mq_sched_alloc_tags() -> blk_mq_alloc_rqs() call fails, then we call blk_mq_sched_free_tags() -> blk_mq_free_rqs(). It is incorrect to do so, as any rqs would have already been freed in the blk_mq_alloc_rqs() call. Fix by calling blk_mq_free_rq_map() only directly. Fixes: 6917ff0b5bd41 ("blk-mq-sched: refactor scheduler initialization") Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/1627378373-148090-1-git-send-email-john.garry@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iocost.c')
0 files changed, 0 insertions, 0 deletions