Skip to content

Commit 81ea42b

Browse files
bvanasscheaxboe
authored andcommitted
block: Fix the blk_mq_destroy_queue() documentation
Commit 2b3f056 moved a blk_put_queue() call from blk_mq_destroy_queue() into its callers. Reflect this change in the documentation block above blk_mq_destroy_queue(). Cc: Christoph Hellwig <hch@lst.de> Cc: Sagi Grimberg <sagi@grimberg.me> Cc: Chaitanya Kulkarni <kch@nvidia.com> Cc: Keith Busch <kbusch@kernel.org> Fixes: 2b3f056 ("blk-mq: move the call to blk_put_queue out of blk_mq_destroy_queue") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230130211233.831613-1-bvanassche@acm.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 29baef7 commit 81ea42b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

block/blk-mq.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4069,8 +4069,9 @@ EXPORT_SYMBOL(blk_mq_init_queue);
40694069
* blk_mq_destroy_queue - shutdown a request queue
40704070
* @q: request queue to shutdown
40714071
*
4072-
* This shuts down a request queue allocated by blk_mq_init_queue() and drops
4073-
* the initial reference. All future requests will failed with -ENODEV.
4072+
* This shuts down a request queue allocated by blk_mq_init_queue(). All future
4073+
* requests will be failed with -ENODEV. The caller is responsible for dropping
4074+
* the reference from blk_mq_init_queue() by calling blk_put_queue().
40744075
*
40754076
* Context: can sleep
40764077
*/

0 commit comments

Comments
 (0)