commit | 943189f1d564e69201f7d71e77f5608a701e3e55 | [log] [tgz] |
---|---|---|
author | Michael Chan <mchan@broadcom.com> | Tue Jun 15 08:57:02 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Jun 15 14:23:37 2010 -0700 |
tree | 4fd0bf3864af8a117e0b99f31af17a4aa61b36a7 | |
parent | a1e621bf6d03621de207cd416f6a21969dd0601c [diff] |
cnic: Refactor and fix cnic_ready_to_close(). Combine RESET_RECEIVED and RESET_COMP logic and fix race condition between these 2 events and cnic_cm_close(). In particular, we need to (test_and_clear_bit(SK_F_OFFLD_COMPLETE, &csk->flags)) before we update csk->state. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Eddie Wai <waie@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>