From patchwork Mon Jan 6 10:06:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13927141 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 764E71D9A60; Mon, 6 Jan 2025 10:06:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736158013; cv=none; b=UtEIBYBmDwLI0LkYO/FCtjXQEn3K28CoAD9v0zO3y+t7sbpEiVQkz7beRt1ScUJKezsH5KKKl7qK1NUmPSHe+KoWBaaBecOLBR6RJtLUB9CMYZjD2m7ZBUr5olPdptu5cMM+nIIaoXy+0B5XXOwrLJRShGPNPZ/h9/ME/bJyzKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736158013; c=relaxed/simple; bh=bVh0spGp4rU9eZXnYYjUMXy4O9/0sBUgoGWgWsKx2gA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N2bh/CgNV4NGFsnw/Ou8JsMoWkoykwXfEwtmswOaCGVMGAga/jpQApFffGya0eeqCWaOkb3PS5moJF2hZpPc4xElRvzBOcW/SlTcZm3NBTu6IjPHPb0jG7v7lwIpeM82SX8SVKbzJFViKnJWwUTs/7Vi9udmR07X+ZbXCRDiQgM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=okxwx09L; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="okxwx09L" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=j5nipNJYCSHT/i19TR1MgfESnS9sU0GXQcRCDAc/Lwo=; b=okxwx09LOw4eRRv+4Qr+j7Hbyi Dh4W/x1OasgDF3CqZvFgOwquoT9zHpOCum6IPA/ByrviAlLliSkn8H0PyQUdF3G//lqcOTdkfyz/5 qkwKBTN9whX60ssnyAeaYAawDiYbFbmHzJEOTDsRBpe9wxMj8pVOghVWDwLzCgDtxmOFPVXQpn1tb pmETnpRZYhKCwZl5tK6uoLNVQIfmw8WnY4Ax7SYxgJGdph1O4dmqPI5t9i3S4wMkhy18omplWxzeS DBgAe7kkM1SRQm3NzBl8Q0i9fv+de9MpOos/q1JzRS6WFGeRu4ts85Y7v1D+E64Y1xyZ66JafyTpi kh+SRz+Q==; Received: from 2a02-8389-2341-5b80-db6b-99e8-3feb-3b4e.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:db6b:99e8:3feb:3b4e] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.98 #2 (Red Hat Linux)) id 1tUk0Y-00000000nO7-3yKC; Mon, 06 Jan 2025 10:06:51 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Damien Le Moal , Ming Lei , Nilay Shroff , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, nbd@other.debian.org, virtualization@lists.linux.dev, linux-scsi@vger.kernel.org, usb-storage@lists.one-eyed-alien.net Subject: [PATCH 01/10] block: fix docs for freezing of queue limits updates Date: Mon, 6 Jan 2025 11:06:14 +0100 Message-ID: <20250106100645.850445-2-hch@lst.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250106100645.850445-1-hch@lst.de> References: <20250106100645.850445-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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 --- block/blk-settings.c | 3 ++- include/linux/blkdev.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/blk-settings.c b/block/blk-settings.c index 8f09e33f41f6..4187c3e8a07f 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -413,7 +413,8 @@ int blk_set_default_limits(struct queue_limits *lim) * @lim: limits to apply * * Apply the limits in @lim that were obtained from queue_limits_start_update() - * and updated by the caller to @q. + * and updated by the caller to @q. The caller must have frozen the queue or + * ensured that there is outstanding I/O by other means. * * Returns 0 if successful, else a negative error code. */ diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 5d40af2ef971..e781d4e6f92d 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -944,8 +944,7 @@ static inline unsigned int blk_boundary_sectors_left(sector_t offset, * the caller can modify. The caller must call queue_limits_commit_update() * to finish the update. * - * Context: process context. The caller must have frozen the queue or ensured - * that there is outstanding I/O by other means. + * Context: process context. */ static inline struct queue_limits queue_limits_start_update(struct request_queue *q)