Skip to content

Commit 5e0fab5

Browse files
Keith Buschaxboe
authored andcommitted
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. Fixes: cdbff4f ("nvme: remove nvme_revalidate_ns") Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent efea2ab commit 5e0fab5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/nvme/host/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,7 @@ static int nvme_revalidate_disk(struct gendisk *disk)
12491249
goto out;
12501250
}
12511251

1252+
__nvme_revalidate_disk(disk, id);
12521253
nvme_report_ns_ids(ctrl, ns->ns_id, id, eui64, nguid, &uuid);
12531254
if (!uuid_equal(&ns->uuid, &uuid) ||
12541255
memcmp(&ns->nguid, &nguid, sizeof(ns->nguid)) ||

0 commit comments

Comments
 (0)