]> err.no Git - linux-2.6/blobdiff - include/scsi/scsi_device.h
Merge with ../linux-2.6-smp
[linux-2.6] / include / scsi / scsi_device.h
index fe9571d2e306434df698b5d997b8204e0755bc56..63c91dd85ca15c0e889e2478d78adc1c9d9641a4 100644 (file)
@@ -44,7 +44,8 @@ struct scsi_device {
        struct list_head    same_target_siblings; /* just the devices sharing same target id */
 
        /* this is now protected by the request_queue->queue_lock */
-       volatile unsigned short device_busy;    /* commands actually active on low-level */
+       unsigned int device_busy;       /* commands actually active on
+                                        * low-level. protected by queue_lock. */
        spinlock_t list_lock;
        struct list_head cmd_list;      /* queue of in use SCSI Command structures */
        struct list_head starved_entry;
@@ -153,7 +154,9 @@ struct scsi_target {
        unsigned int            id; /* target id ... replace
                                     * scsi_device.id eventually */
        unsigned long           create:1; /* signal that it needs to be added */
-       unsigned long           starget_data[0];
+       void                    *hostdata; /* available to low-level driver */
+       unsigned long           starget_data[0]; /* for the transport */
+       /* starget_data must be the last element!!!! */
 } __attribute__((aligned(sizeof(unsigned long))));
 
 #define to_scsi_target(d)      container_of(d, struct scsi_target, dev)