From: Michael Chan Date: Tue, 15 Jun 2010 08:57:02 +0000 (+0000) Subject: cnic: Refactor and fix cnic_ready_to_close(). X-Git-Tag: v2.6.36-rc1~571^2~573 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=943189f1d564e69201f7d71e77f5608a701e3e55;p=pandora-kernel.git 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 Signed-off-by: Eddie Wai Signed-off-by: David S. Miller --- Reading git-diff-tree failed