[PATCH] nvme: update comment about invalid LBA size

John Garry john.g.garry at oracle.com
Fri Feb 27 02:23:32 PST 2026


We have supported LBA size > PAGE_SIZE for some time now, so update the
relevant comment in nvme_update_disk_info().

Signed-off-by: John Garry <john.g.garry at oracle.com>

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 3a2126584a236..c5ed0536b040a 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2085,8 +2085,7 @@ static bool nvme_update_disk_info(struct nvme_ns *ns, struct nvme_id_ns *id,
 	bool valid = true;
 
 	/*
-	 * The block layer can't support LBA sizes larger than the page size
-	 * or smaller than a sector size yet, so catch this early and don't
+	 * Catch LBA sizes which the block layer can't support early and don't
 	 * allow block I/O.
 	 */
 	if (blk_validate_block_size(bs)) {
-- 
2.43.5




More information about the Linux-nvme mailing list