Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: fix docs for freezing of queue limits updates

queue_limits_commit_update is the function that needs to operate on a
frozen queue, not queue_limits_start_update. Update the kerneldoc
comments to reflect that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250110054726.1499538-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
9c96821b 844b8cdc

+3 -3
+2 -1
block/blk-settings.c
··· 413 413 * @lim: limits to apply 414 414 * 415 415 * Apply the limits in @lim that were obtained from queue_limits_start_update() 416 - * and updated by the caller to @q. 416 + * and updated by the caller to @q. The caller must have frozen the queue or 417 + * ensure that there are no outstanding I/Os by other means. 417 418 * 418 419 * Returns 0 if successful, else a negative error code. 419 420 */
+1 -2
include/linux/blkdev.h
··· 944 944 * the caller can modify. The caller must call queue_limits_commit_update() 945 945 * to finish the update. 946 946 * 947 - * Context: process context. The caller must have frozen the queue or ensured 948 - * that there is outstanding I/O by other means. 947 + * Context: process context. 949 948 */ 950 949 static inline struct queue_limits 951 950 queue_limits_start_update(struct request_queue *q)