From: Michael Chan Date: Fri, 14 Aug 2009 15:49:47 +0000 (+0000) Subject: cnic: Fix locking in init/exit calls. X-Git-Tag: v2.6.31-rc7~27^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc1ece40704b150477e548a7a98d285cc418790;p=pandora-kernel.git cnic: Fix locking in init/exit calls. The slow path ulp_init and ulp_exit calls to the bnx2i driver are sleepable calls and therefore should not be protected using rcu_read_lock. Fix it by using mutex and refcount during these calls. cnic_unregister_driver() will now wait for the refcount to go to zero before completing the call. Signed-off-by: Michael Chan Reviewed-by: Benjamin Li Signed-off-by: David S. Miller --- Reading git-diff-tree failed