diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-03-09 16:33:31 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-18 02:43:52 +0100 |
commit | 70a9b8734660698eb91efb8947a9e691d40235e1 (patch) | |
tree | cd0e464836c37b675ed57e9a0ff89522e031748b /drivers/scsi/sd.h | |
parent | [SCSI] sd: Try READ CAPACITY 16 first for SBC-2 devices (diff) | |
download | linux-70a9b8734660698eb91efb8947a9e691d40235e1.tar.xz linux-70a9b8734660698eb91efb8947a9e691d40235e1.zip |
[SCSI] sd: Make revalidate less chatty
sd_revalidate ends up being called several times during device setup.
With this patch we print everything during the first scan. Subsequent
invocations will only print a message if the parameter in question has
actually changed (LUN capacity has increased, etc.).
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd.h')
-rw-r--r-- | drivers/scsi/sd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index 75638e7d3f66..708778cf5f06 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h @@ -53,6 +53,7 @@ struct scsi_disk { unsigned WCE : 1; /* state of disk WCE bit */ unsigned RCD : 1; /* state of disk RCD bit, unused */ unsigned DPOFUA : 1; /* state of disk DPOFUA bit */ + unsigned first_scan : 1; }; #define to_scsi_disk(obj) container_of(obj,struct scsi_disk,dev) |