diff options
author | <htejun@gmail.com> | 2005-04-17 15:57:29 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic> | 2005-04-18 13:35:31 -0400 |
commit | 06f81ea8ca09b880cadf101d7e23b500e9c164bc (patch) | |
tree | 87e70ac102f2498214f42e8f0ad879513669881b /include/scsi/scsi_host.h | |
parent | bf341919dbc1fbcbb565fb3224c840760ebd9f85 (diff) |
[PATCH] scsi: remove volatile from scsi data
This patch removes volatile qualifier from scsi_device->device_busy,
Scsi_Host->host_busy and ->host_failed as the volatile qualifiers
don't serve any purpose now. While at it, convert those fields from
unsigned short to unsigned int as suggested by Christoph.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_host.h')
-rw-r--r-- | include/scsi/scsi_host.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 27f2c4e8943..1cee1e10094 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -448,8 +448,14 @@ struct Scsi_Host { | |||
448 | wait_queue_head_t host_wait; | 448 | wait_queue_head_t host_wait; |
449 | struct scsi_host_template *hostt; | 449 | struct scsi_host_template *hostt; |
450 | struct scsi_transport_template *transportt; | 450 | struct scsi_transport_template *transportt; |
451 | volatile unsigned short host_busy; /* commands actually active on low-level */ | 451 | |
452 | volatile unsigned short host_failed; /* commands that failed. */ | 452 | /* |
453 | * The following two fields are protected with host_lock; | ||
454 | * however, eh routines can safely access during eh processing | ||
455 | * without acquiring the lock. | ||
456 | */ | ||
457 | unsigned int host_busy; /* commands actually active on low-level */ | ||
458 | unsigned int host_failed; /* commands that failed. */ | ||
453 | 459 | ||
454 | unsigned short host_no; /* Used for IOCTL_GET_IDLUN, /proc/scsi et al. */ | 460 | unsigned short host_no; /* Used for IOCTL_GET_IDLUN, /proc/scsi et al. */ |
455 | int resetting; /* if set, it means that last_reset is a valid value */ | 461 | int resetting; /* if set, it means that last_reset is a valid value */ |