]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: don't grab rq's refcount in blk_mq_check_expired()
authorMing Lei <ming.lei@redhat.com>
Wed, 11 Aug 2021 15:52:02 +0000 (23:52 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Aug 2021 14:32:45 +0000 (08:32 -0600)
commitc797b40ccc340b8a66f7a7842aecc90bf749f087
treede1d9571d725388e38b0a814b5b4bd2ea4421e54
parentcddce01160582a5f52ada3da9626c052d852ec42
blk-mq: don't grab rq's refcount in blk_mq_check_expired()

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: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/20210811155202.629575-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c