summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/arm/fas216.h
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2007-09-10 21:39:11 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-02-11 19:43:12 +0100
commitccf9ea91aba0d3b8145900ec02f6edf03dda708c (patch)
tree0edc087a5553252599964ed39a986db0ef4cfc54 /drivers/scsi/arm/fas216.h
parent[SCSI] ses: fix memory leaks (diff)
downloadlinux-ccf9ea91aba0d3b8145900ec02f6edf03dda708c.tar.xz
linux-ccf9ea91aba0d3b8145900ec02f6edf03dda708c.zip
[SCSI] fas216: Use scsi_eh API for REQUEST_SENSE invocation
Use new scsi_eh_prep/restor_cmnd() for synchronous REQUEST_SENSE invocation. This also converts the driver to the new accessor based scatterlist implementation. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Tested-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/arm/fas216.h')
-rw-r--r--drivers/scsi/arm/fas216.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/arm/fas216.h b/drivers/scsi/arm/fas216.h
index 00e5f055afdc..3e73e264972e 100644
--- a/drivers/scsi/arm/fas216.h
+++ b/drivers/scsi/arm/fas216.h
@@ -16,6 +16,8 @@
#define NO_IRQ 255
#endif
+#include <scsi/scsi_eh.h>
+
#include "queue.h"
#include "msgqueue.h"
@@ -311,6 +313,7 @@ typedef struct {
/* miscellaneous */
int internal_done; /* flag to indicate request done */
+ struct scsi_eh_save *ses; /* holds request sense restore info */
unsigned long magic_end;
} FAS216_Info;