cnic: Fix rare race condition during iSCSI disconnect.
authorEddie Wai <eddie.wai@broadcom.com>
Wed, 5 Dec 2012 10:10:15 +0000 (10:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Dec 2012 21:01:28 +0000 (16:01 -0500)
commit0d650ec75a0d2525dbc98f1a04ed0b2a4bf5d3ac
tree8568b55f2f3a26e610dc97cec622c1996d5c3c39
parentcaa9e931fe40c9ffad4d951555675417ab074ea5
cnic: Fix rare race condition during iSCSI disconnect.

If the initiator and target try to close the connection at about the same
time, there is a race condition in the termination sequence for bnx2x.
Fix the problem by waiting for the remote termination to complete before
deleting the Connection ID.  This will prevent the firmware assert.

Update version to 2.5.15.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c
drivers/net/ethernet/broadcom/cnic_if.h