cnic: Fix race conditions with firmware
authorMichael Chan <mchan@broadcom.com>
Wed, 8 Jun 2011 19:29:33 +0000 (19:29 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:41:04 +0000 (11:41 -0700)
commitc3eaf680aacef62f7a7219b9c8f3f03d7b2269f0
treeca8c55ec43ecf21ecfc3c6ccfa3d3d767ce1c8aa
parent8210cf522873ff4bb1027a7cebb3199fd3c5b29b
cnic: Fix race conditions with firmware

commit 101c40c8cb0d10c30f423805f9f5b7a75956832d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/cnic.c