diff options
author | Balbir Singh <sblbir@amazon.com> | 2020-03-13 05:30:08 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-18 15:13:21 -0600 |
commit | cb224c3af4df5996246eb779a23d968a8aabad28 (patch) | |
tree | 5e09a2670019f5e146f0e56170ae523a6fc9c4f6 /drivers/nvme | |
parent | 3cbc28bb902b8e3a8a216e21eee1a67dd474eb43 (diff) | |
download | linux-stable-cb224c3af4df5996246eb779a23d968a8aabad28.tar.gz linux-stable-cb224c3af4df5996246eb779a23d968a8aabad28.tar.bz2 linux-stable-cb224c3af4df5996246eb779a23d968a8aabad28.zip |
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 <sblbir@amazon.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index a4d8c90ee7cc..41ad07f6a564 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); |