nvme: Fix setting logical block format when revalidating
PATCH 1/1 nvme: Fix setting logical block format when revalidating
Revalidating the disk needs to set the logical block format and capacity, otherwise it can't figure out if the users modified anything about the namespace.
--- drivers/nvme/host/core.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvme/host/core.c +1 -0
@@ -1249,6 +1249,7 @@ static int nvme_revalidate_disk(struct gendisk *disk) goto out; } +__nvme_revalidate_disk (disk, id);nvme_report_ns_ids (ctrl, ns->ns_id, id, eui64, nguid, &uuid); if (!uuid_equal(&ns->uuid, &uuid) || memcmp(&ns->nguid, &nguid, sizeof(ns->nguid)) ||
Signature · 1 line
2.13.6
Christoph Hellwig
maintainerPATCH 1/1 nvme: Fix setting logical block format when revalidating
Quoted 7 lines · Keith Busch
Revalidating the disk needs to set the logical block format and capacity, otherwise it can't figure out if the users modified anything about the namespace.
Fixes cdbff4f26bd9 ("nvme: remove nvme_revalidate_ns")Signed-off-by Keith Busch <keith.busch at intel.com>
Looks fine to me:
Jens: can you pick this up directly before sending a block PR today?
Sagi Grimberg
maintainerPATCH 1/1 nvme: Fix setting logical block format when revalidating
In reply to Keith BuschPATCH 1/1 nvme: Fix setting logical block format when revalidating
In reply to Keith BuschQuoted 3 lines · Keith Busch
Revalidating the disk needs to set the logical block format and capacity, otherwise it can't figure out if the users modified anything about the namespace.
Applied, thanks Keith.
Signature · 1 line
Jens Axboe