From: Balbir Singh Date: Fri, 13 Mar 2020 05:30:08 +0000 (+0000) Subject: nvme: Convert to use set_capacity_revalidate_and_notify X-Git-Tag: v5.7-rc1~203^2~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb224c3af4df;p=thirdparty%2Flinux.git nvme: Convert to use set_capacity_revalidate_and_notify block/genhd provides set_capacity_revalidate_and_notify() for sending RESIZE notifications via uevents. This notification is newly added to NVME devices Signed-off-by: Balbir Singh Reviewed-by: Sagi Grimberg Reviewed-by: Christoph Hellwig Acked-by: Keith Busch Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index a4d8c90ee7cc4..41ad07f6a5649 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1810,7 +1810,7 @@ static void nvme_update_disk_info(struct gendisk *disk, ns->lba_shift > PAGE_SHIFT) capacity = 0; - set_capacity(disk, capacity); + set_capacity_revalidate_and_notify(disk, capacity, false); nvme_config_discard(disk, ns); nvme_config_write_zeroes(disk, ns);