]> git.hungrycats.org Git - linux/commit
blk-mq: add non_owner variant of start_freeze/unfreeze queue APIs
authorMing Lei <ming.lei@redhat.com>
Fri, 25 Oct 2024 00:37:18 +0000 (08:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:29 +0000 (13:54 +0100)
commit5ddbe85ac614024522d738c5d962b3b763a6971b
treef5cdaac039acd922b915c13dc55c330832e2e27a
parentc03cc062e3acccc6693a6f70d611784c39b9b2d4
blk-mq: add non_owner variant of start_freeze/unfreeze queue APIs

[ Upstream commit 8acdd0e7bfadda6b5103f2960d293581954454ed ]

Add non_owner variant of start_freeze/unfreeze queue APIs, so that the
caller knows that what they are doing, and we can skip lockdep support
for non_owner variant in per-call level.

Prepare for supporting lockdep for freezing/unfreezing queue.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20241025003722.3630252-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 3802f73bd807 ("block: fix uaf for flush rq while iterating tags")
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-mq.c
include/linux/blk-mq.h