From: yangsheng Date: Tue, 24 Apr 2012 20:05:15 +0000 (+0800) Subject: LU-1312 kernel: crash at boot time in isci driver X-Git-Tag: 2.2.52~20 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4bd25057c326474f53b47a10690edfd41090e719;p=fs%2Flustre-release.git 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: Ie20bbf669c64514fc95f1f2b274a689d65cd0c2a Reviewed-on: http://review.whamcloud.com/2596 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Johann Lombardi Reviewed-by: Oleg Drokin --- diff --git a/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel6.patch b/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel6.patch index b05b835..e58bc07 100644 --- a/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel6.patch +++ b/lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel6.patch @@ -25,3 +25,16 @@ Index: linux-2.6.32.x86_64/include/scsi/scsi.h /* * Like SCSI_MAX_SG_SEGMENTS, but for archs that have sg chaining. This limit +Index: linux-2.6.32.x86_64/drivers/scsi/isci/init.c +=================================================================== +--- linux-2.6.32.x86_64/drivers/scsi/isci/init.c ++++ linux-2.6.32.x86_64/drivers/scsi/isci/init.c +@@ -19,7 +19,7 @@ + .can_queue = ISCI_CAN_QUEUE_VAL, + .cmd_per_lun = 1, + .this_id = -1, +- .sg_tablesize = SG_ALL, ++ .sg_tablesize = 128, + .max_sectors = SCSI_DEFAULT_MAX_SECTORS, + .use_clustering = ENABLE_CLUSTERING, + .eh_device_reset_handler = sas_eh_device_reset_handler,