From: Keith Busch Date: Fri, 27 Oct 2017 19:51:22 +0000 (-0600) Subject: nvme: Fix setting logical block format when revalidating X-Git-Tag: v4.14-rc8~31^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e0fab57fb3e0e553758067a15eefdc796ef0a76;p=platform%2Fkernel%2Flinux-rpi3.git 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: cdbff4f26bd9 ("nvme: remove nvme_revalidate_ns") Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Signed-off-by: Keith Busch Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 5a14cc7..37f9039 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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)) ||