]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/scsi/libsas.h
[SCSI] libsas: Don't give scsi_cmnds to the EH if they never made it to the SAS LLDD...
[linux-2.6-omap-h63xx.git] / include / scsi / libsas.h
index 9233ed5de664625f0d780974b1be17047c728d22..da96bcfb9e468ebb33dbb8cbb2fcc16688737e6b 100644 (file)
@@ -554,10 +554,11 @@ struct sas_task {
 #define SAS_TASK_STATE_DONE         2
 #define SAS_TASK_STATE_ABORTED      4
 #define SAS_TASK_INITIATOR_ABORTED  8
+#define SAS_TASK_AT_INITIATOR       16
 
 static inline struct sas_task *sas_alloc_task(gfp_t flags)
 {
-       extern kmem_cache_t *sas_task_cache;
+       extern struct kmem_cache *sas_task_cache;
        struct sas_task *task = kmem_cache_alloc(sas_task_cache, flags);
 
        if (task) {
@@ -575,7 +576,7 @@ static inline struct sas_task *sas_alloc_task(gfp_t flags)
 static inline void sas_free_task(struct sas_task *task)
 {
        if (task) {
-               extern kmem_cache_t *sas_task_cache;
+               extern struct kmem_cache *sas_task_cache;
                BUG_ON(!list_empty(&task->list));
                kmem_cache_free(sas_task_cache, task);
        }