]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Fixed port and system failure in handling SLI4 FC port function reset (CR 126551)
authorVaios Papadimitriou <vaios.papadimitriou@emulex.com>
Tue, 8 May 2012 22:01:26 +0000 (17:01 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:01:26 +0000 (17:01 -0700)
commitfe657b2cc728e300ea8466c747d68e864a2242b5
tree8dce3e57c5340a0676f2a2c5a8dea1695032a623
parentfb40da92c8d02bcd433b51e8e8a39e0487fe5205
Fixed port and system failure in handling SLI4 FC port function reset (CR 126551)

When performing function reset to LPe16000 port which is connected to a fabric
and has targets (LUNs) discovered in the zone, sometimes the reset can fail and
end up in the port being unresponsive or system crash or hang. Now, when
reposting the SCSI SGL list after function reset, set the logical XRI allocated
bit in the logical XRI bmask to account for the XRIs posted, so duplicated
XRI will not be allocated later for new SGLs. Also, reset the used xri counts,
and updated them properly during function reset.

commit id: 41899be7e8b95c9c8b51ad4ff932769af508306f

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli.c