Skip to content

Commit cb224c3

Browse files
balbir-awsaxboe
authored andcommitted
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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Acked-by: Keith Busch <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 3cbc28b commit cb224c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ static void nvme_update_disk_info(struct gendisk *disk,
18101810
ns->lba_shift > PAGE_SHIFT)
18111811
capacity = 0;
18121812

1813-
set_capacity(disk, capacity);
1813+
set_capacity_revalidate_and_notify(disk, capacity, false);
18141814

18151815
nvme_config_discard(disk, ns);
18161816
nvme_config_write_zeroes(disk, ns);

0 commit comments

Comments
 (0)