]> err.no Git - linux-2.6/blobdiff - include/scsi/scsi_host.h
[PATCH] dvb: stv0299: fix FE_DISHNETWORK_SEND_LEGACY_CMD
[linux-2.6] / include / scsi / scsi_host.h
index 27f2c4e8943ac35941cdbe36c9bd929ced644b79..1cee1e100943dafe00c14d5329b73659062a4d1a 100644 (file)
@@ -448,8 +448,14 @@ struct Scsi_Host {
        wait_queue_head_t       host_wait;
        struct scsi_host_template *hostt;
        struct scsi_transport_template *transportt;
-       volatile unsigned short host_busy;   /* commands actually active on low-level */
-       volatile unsigned short host_failed; /* commands that failed. */
+
+       /*
+        * The following two fields are protected with host_lock;
+        * however, eh routines can safely access during eh processing
+        * without acquiring the lock.
+        */
+       unsigned int host_busy;            /* commands actually active on low-level */
+       unsigned int host_failed;          /* commands that failed. */
     
        unsigned short host_no;  /* Used for IOCTL_GET_IDLUN, /proc/scsi et al. */
        int resetting; /* if set, it means that last_reset is a valid value */