Commit f98a8cae authored by Andrew Patterson's avatar Andrew Patterson Committed by Jens Axboe

SCSI sd driver calls revalidate_disk wrapper.

Modify the SCSI disk driver to call the revalidate_disk()
wrapper. This allows us to do some housekeeping such as accounting for
a disk being resized online. The wrapper will call
sd_revalidate_disk() at the appropriate time.
Signed-off-by: default avatarAndrew Patterson <andrew.patterson@hp.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 9bc3ffbf
...@@ -165,7 +165,7 @@ sd_store_cache_type(struct device *dev, struct device_attribute *attr, ...@@ -165,7 +165,7 @@ sd_store_cache_type(struct device *dev, struct device_attribute *attr,
sd_print_sense_hdr(sdkp, &sshdr); sd_print_sense_hdr(sdkp, &sshdr);
return -EINVAL; return -EINVAL;
} }
sd_revalidate_disk(sdkp->disk); revalidate_disk(sdkp->disk);
return count; return count;
} }
...@@ -916,7 +916,7 @@ static void sd_rescan(struct device *dev) ...@@ -916,7 +916,7 @@ static void sd_rescan(struct device *dev)
struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev); struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev);
if (sdkp) { if (sdkp) {
sd_revalidate_disk(sdkp->disk); revalidate_disk(sdkp->disk);
scsi_disk_put(sdkp); scsi_disk_put(sdkp);
} }
} }
......
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