]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] mpt2sas: fix broadcast AEN and task management issue
authorKashyap, Desai <kashyap.desai@lsi.com>
Tue, 14 Jun 2011 05:26:43 +0000 (10:56 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 21:15:51 +0000 (16:15 -0500)
commitefc11f576591ca18b8c29be3cc8310ecc05cdbfd
tree424e6e1e95065387f38b8160febf8866c72c549a
parent458299f95bd991088729816671d8c72b19e4a72a
[SCSI] mpt2sas: fix broadcast AEN and task management issue

Properly handling of target reset in multi-initiator environment

Clean up in broadcast change handling:
(1) Need to look at the status of each task management request, and retry
    the TM when there are failures.
(2) Need quiescence IO so the driver doesn't take on more IO request while
    it's in the middle of sending TM  request to firmware
(3)  Add support to keep track of how many pending broadcast AEN events
     are received while the broadcast handling is active, then loop back at
     the end of this routine if there were any events received.

Clean up in mpt2sas_scsih_issue_tm routine:
(1) Make sure proper status is returned when host reset fails
(2) Clean up sanity checks near end of routine, insuring all outstanding
    IOs were completed.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_base.h
drivers/scsi/mpt2sas/mpt2sas_ctl.c
drivers/scsi/mpt2sas/mpt2sas_scsih.c