+Index: linux-2.6.18-164.11.1/include/scsi/scsi_host.h
+===================================================================
+--- linux-2.6.18-164.11.1.orig/include/scsi/scsi_host.h
++++ linux-2.6.18-164.11.1/include/scsi/scsi_host.h
+@@ -30,7 +30,7 @@ struct blk_queue_tags;
+ * used in one scatter-gather request.
+ */
+ #define SG_NONE 0
+-#define SG_ALL 0xff
++#define SG_ALL 256
+
+
+ #define DISABLE_CLUSTERING 0
+Index: linux-2.6.18-164.11.1/drivers/scsi/lpfc/lpfc.h
+===================================================================
+--- linux-2.6.18-164.11.1.orig/drivers/scsi/lpfc/lpfc.h
++++ linux-2.6.18-164.11.1/drivers/scsi/lpfc/lpfc.h
+@@ -38,7 +38,7 @@
+ #define LPFC_MAX_NS_RETRY 3 /* Number of retry attempts to contact
+ the NameServer before giving up. */
+ #define LPFC_CMD_PER_LUN 3 /* max outstanding cmds per lun */
+-#define LPFC_DEFAULT_SG_SEG_CNT 64 /* sg element count per scsi cmnd */
++#define LPFC_DEFAULT_SG_SEG_CNT 256 /* sg element count per scsi cmnd */
+ #define LPFC_MAX_SG_SEG_CNT 256 /* sg element count per scsi cmnd */
+ #define LPFC_IOCB_LIST_CNT 2250 /* list of IOCBs for fast-path usage. */
+ #define LPFC_Q_RAMP_UP_INTERVAL 120 /* lun q_depth ramp up interval */