Whamcloud - gitweb
LU-1312 kernel: crash at boot time in isci driver
authoryangsheng <ys@whamcloud.com>
Tue, 24 Apr 2012 20:05:15 +0000 (04:05 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 Apr 2012 02:47:38 +0000 (22:47 -0400)
Restore SG_ALL to default value to avoid crash isci.

Signed-off-by: yang sheng <ys@whamcloud.com>
Change-Id: Ie20bbf669c64514fc95f1f2b274a689d65cd0c2a
Reviewed-on: http://review.whamcloud.com/2596
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/kernel_patches/patches/blkdev_tunables-2.6-rhel6.patch

index b05b835..e58bc07 100644 (file)
@@ -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
  
  /*
   * 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,