]> 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)
commit759b9a16ae6d69129a962e110967ef1251b9239b
tree6b460f517e244ee80a2f8e8ae2f266e5509ff2f3
parent4df2e41fb6495bf9ea2da37f8c1aed6ae25e4651
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