Commit 78317c5d authored by Balbir Singh's avatar Balbir Singh Committed by Jens Axboe

scsi: 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 scsi sd.
Signed-off-by: default avatarBalbir Singh <sblbir@amazon.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cb224c3a
...@@ -3187,7 +3187,8 @@ static int sd_revalidate_disk(struct gendisk *disk) ...@@ -3187,7 +3187,8 @@ static int sd_revalidate_disk(struct gendisk *disk)
sdkp->first_scan = 0; sdkp->first_scan = 0;
set_capacity(disk, logical_to_sectors(sdp, sdkp->capacity)); set_capacity_revalidate_and_notify(disk,
logical_to_sectors(sdp, sdkp->capacity), false);
sd_config_write_same(sdkp); sd_config_write_same(sdkp);
kfree(buffer); kfree(buffer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment