]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita95ba36f94449e28d87d578644d4cc435d4c50e9
tree6b460f517e244ee80a2f8e8ae2f266e5509ff2f3
parentae4819d56421b2bdbae4c04ac7cc7ab67d0ec75b
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