]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Dec 2011 16:25:16 +0000 (11:25 -0500)
commit4732f136f0679ca323eaa986d00b0671c0807889
treed0ff914941ffeccac09fe758fef69f5e77fc3f41
parent50506ca44b2b9924794835e83191a2976b7dcc32
[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