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 <[email protected]> Cc: Sagi Grimberg <[email protected]> Cc: Chaitanya Kulkarni <[email protected]> Cc: Keith Busch <[email protected]> Fixes: 2b3f056 ("blk-mq: move the call to blk_put_queue out of blk_mq_destroy_queue") Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
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)