aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Patterson <andrew.patterson@hp.com>2008-09-04 16:27:35 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:56:13 -0400
commitf98a8cae12f2b2a8f9bfd7a53c990a1a405e880e (patch)
tree3fcfd762a5841b8cbc5ab0987da8da3ee37a9201
parent9bc3ffbfbdf71fefda8a261ef8d6fdc388a29b42 (diff)
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: Andrew Patterson <andrew.patterson@hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--drivers/scsi/sd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index bcb04b2a7676..cb115d1bf228 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -165,7 +165,7 @@ sd_store_cache_type(struct device *dev, struct device_attribute *attr,
165 sd_print_sense_hdr(sdkp, &sshdr); 165 sd_print_sense_hdr(sdkp, &sshdr);
166 return -EINVAL; 166 return -EINVAL;
167 } 167 }
168 sd_revalidate_disk(sdkp->disk); 168 revalidate_disk(sdkp->disk);
169 return count; 169 return count;
170} 170}
171 171
@@ -916,7 +916,7 @@ static void sd_rescan(struct device *dev)
916 struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev); 916 struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev);
917 917
918 if (sdkp) { 918 if (sdkp) {
919 sd_revalidate_disk(sdkp->disk); 919 revalidate_disk(sdkp->disk);
920 scsi_disk_put(sdkp); 920 scsi_disk_put(sdkp);
921 } 921 }
922} 922}