diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-03-09 11:33:31 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-17 21:43:52 -0400 |
commit | 70a9b8734660698eb91efb8947a9e691d40235e1 (patch) | |
tree | cd0e464836c37b675ed57e9a0ff89522e031748b /drivers/scsi/sd.h | |
parent | 2b301307f63dbecf06d91f58f003c7fb7addee24 (diff) | |
download | talos-op-linux-70a9b8734660698eb91efb8947a9e691d40235e1.tar.gz talos-op-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) |