From 8d7f82f1515b314cc92b2463f955c9c3e1280e3e Mon Sep 17 00:00:00 2001 From: yangsheng Date: Wed, 25 Apr 2012 03:50:34 +0800 Subject: [PATCH] LU-1312 kernel: crash at boot time in isci driver Restore SG_ALL to default value to avoid crash isci. Signed-off-by: yang sheng Change-Id: I855ba8c7669b749fded51f3b0316f115d18e0fcd Reviewed-on: http://review.whamcloud.com/2595 Reviewed-by: Johann Lombardi Tested-by: Hudson Tested-by: Maloo --- .../kernel_patches/patches/blkdev_tunables-2.6-rhel5.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel5.patch b/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel5.patch index 3874794..5343c8f 100644 --- a/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel5.patch +++ b/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel5.patch @@ -29,6 +29,19 @@ Index: linux-2.6.18-164.11.1/include/scsi/scsi_host.h #define DISABLE_CLUSTERING 0 +Index: linux-2.6.18-164.11.1/drivers/scsi/isci/init.c +=================================================================== +--- linux-2.6.18-164.11.1/drivers/scsi/isci/init.c ++++ linux-2.6.18-164.11.1/drivers/scsi/isci/init.c +@@ -38,7 +38,7 @@ + .can_queue = ISCI_CAN_QUEUE_VAL, + .cmd_per_lun = 1, + .this_id = -1, +- .sg_tablesize = SG_ALL, ++ .sg_tablesize = 0x80, + .max_sectors = SCSI_DEFAULT_MAX_SECTORS, + .use_clustering = ENABLE_CLUSTERING, + .eh_device_reset_handler = sas_eh_device_reset_handler, 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 -- 1.8.3.1