Skip to content
Snippets Groups Projects
Commit a82cc889 authored by Ming Lei's avatar Ming Lei Committed by Yang Yingliang
Browse files

blk-mq: don't grab rq's refcount in blk_mq_check_expired()

mainline inclusion
from mainline-v5.14-rc7
commit c797b40ccc340b8a66f7a7842aecc90bf749f087
category: bugfix
bugzilla: 34280, https://gitee.com/openeuler/kernel/issues/I4AKY4


CVE: NA

-----------------------------------------------

Inside blk_mq_queue_tag_busy_iter() we already grabbed request's
refcount before calling ->fn(), so needn't to grab it one more time
in blk_mq_check_expired().

Meantime remove extra request expire check in blk_mq_check_expired().

Cc: Keith Busch <kbusch@kernel.org>
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohn Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/20210811155202.629575-1-ming.lei@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 0349157d
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment