diff options
| author | Ming Lei <ming.lei@redhat.com> | 2024-10-25 08:37:18 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-10-26 07:14:53 -0600 |
| commit | 8acdd0e7bfadda6b5103f2960d293581954454ed (patch) | |
| tree | b21831a9052813512e445867a919d5d9735e24b0 /include/linux | |
| parent | e203e20a8b2b67eb12f87aa3ee625cda5e686434 (diff) | |
| download | linux-8acdd0e7bfadda6b5103f2960d293581954454ed.tar.gz linux-8acdd0e7bfadda6b5103f2960d293581954454ed.tar.bz2 linux-8acdd0e7bfadda6b5103f2960d293581954454ed.zip | |
blk-mq: add non_owner variant of start_freeze/unfreeze queue APIs
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blk-mq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 59e9adf815a4..2035fad3131f 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -919,6 +919,8 @@ void blk_freeze_queue_start(struct request_queue *q); void blk_mq_freeze_queue_wait(struct request_queue *q); int blk_mq_freeze_queue_wait_timeout(struct request_queue *q, unsigned long timeout); +void blk_mq_unfreeze_queue_non_owner(struct request_queue *q); +void blk_freeze_queue_start_non_owner(struct request_queue *q); void blk_mq_map_queues(struct blk_mq_queue_map *qmap); void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues); |