]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] mptfusion: Fix for device offline while doing aggressive HBA reset
authorkashyap.desai@lsi.com <kashyap.desai@lsi.com>
Fri, 5 Aug 2011 05:34:37 +0000 (11:04 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 24 Aug 2011 03:40:09 +0000 (20:40 -0700)
commit37a896afee7ccd0a62d986d580082ca4bc97751d
tree8e014db4e4b2e956fef77d927b03a5dae25c2b1e
parent7694847f0270eedee03dfc977ad6b2c0d4330dbb
[SCSI] mptfusion: Fix for device offline while doing aggressive HBA reset

[Resend patch as per Bernd Schubert comment ]

Issue:

Device goes offline while doing aggressive HBA reset
along with IO using some utility.

Root cause:

FW goes into bad state due to aggressive reset. Softreset does not
help to recover FW. And also aggressive reset open up the window for
Error handling thread to kicked off at the same time HBA will be in
constant RESET loop as part of aggressive reset test case can lead
Device to goes offline.

Changes:

1. Added extra check as below inside eh_timed_out call back as below.
   if(ioc->ioc_reset_in_progress) Rc = EH_TIMER_RESET

2. Removed " DOORBELL_ACTIVE" check for SAS controller from task
   management context.  Since SAS controller uses high priority queue
   for task management. This check is not required for SAS controller.

3. Moved SoftReset call to HardReset from Task Mgmt context.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/message/fusion/mptbase.c
drivers/message/fusion/mptbase.h
drivers/message/fusion/mptsas.c
drivers/message/fusion/mptscsih.c