cnic: Fix race conditions with firmware
authorMichael Chan <mchan@broadcom.com>
Wed, 8 Jun 2011 19:29:33 +0000 (19:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2011 06:52:36 +0000 (23:52 -0700)
commit101c40c8cb0d10c30f423805f9f5b7a75956832d
tree6b460f517e244ee80a2f8e8ae2f266e5509ff2f3
parent93736656138e6d2f39f19c1d68f9ef81cfc9dd66
cnic: Fix race conditions with firmware

During iSCSI connection terminations, if the target is also terminating
at about the same time, the firmware may not complete the driver's
request to close or reset the connection.  This is fixed by handling
other events (instead of the expected completion event) as an indication
that the driver's request has been rejected.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c