]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] megaraid_sas: intercept cmd timeout and throttle io
authorSumant Patro <sumant.patro@lsi.com>
Thu, 17 May 2007 12:47:51 +0000 (05:47 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 24 May 2007 14:08:27 +0000 (09:08 -0500)
commit294f376aa30d7a20275f1b7238104d7f3ed055b7
treeeffaeaafd39a849d6a4a303bde6f60714c1a72c9
parentc50ab61f6c89ca8c404596bb223c278c6d14827d
[SCSI] megaraid_sas: intercept cmd timeout and throttle io

eh_timed_out call back (megasas_reset_timer) is used to throttle io
to the adapter when it is called the first time for a scmd.
The MEGASAS_FW_BUSY flag is set and can_queue reduced to 16.
The can_queue is restored from completion routine in following
two conditions : 5 seconds has elapsed and
the # of outstanding cmds in FW is < 17.

Signed-off-by: Sumant Patro <sumant.patro@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/megaraid/megaraid_sas.c
drivers/scsi/megaraid/megaraid_sas.h