lkml.org 
[lkml]   [2008]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/5] SCSI sd driver calls revalidate_disk wrapper.
    Date
    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>
    ---

    drivers/scsi/sd.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)


    diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
    index 01cefbb..7aedeb3 100644
    --- a/drivers/scsi/sd.c
    +++ b/drivers/scsi/sd.c
    @@ -160,7 +160,7 @@ sd_store_cache_type(struct device *dev, struct device_attribute *attr,
    sd_print_sense_hdr(sdkp, &sshdr);
    return -EINVAL;
    }
    - sd_revalidate_disk(sdkp->disk);
    + revalidate_disk(sdkp->disk);
    return count;
    }

    @@ -871,7 +871,7 @@ static void sd_rescan(struct device *dev)
    struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev);

    if (sdkp) {
    - sd_revalidate_disk(sdkp->disk);
    + revalidate_disk(sdkp->disk);
    scsi_disk_put(sdkp);
    }
    }


    \
     
     \ /
      Last update: 2008-05-08 08:55    [W:0.020 / U:0.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site