From: Michael Chan Date: Fri, 14 Aug 2009 15:49:46 +0000 (+0000) Subject: cnic: Fix locking in start/stop calls. X-Git-Tag: v2.6.31-rc7~27^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=681dbd710779e8b8d5bae926f6b11f30df70638b;p=pandora-kernel.git cnic: Fix locking in start/stop calls. The slow path ulp_start and ulp_stop calls to the bnx2i driver are sleepable calls and therefore should not be protected using rcu_read_lock. Fix it by using mutex and setting a bit during these calls. cnic_unregister_device() will now wait for the bit to clear before completing the call. Signed-off-by: Michael Chan Reviewed-by: Benjamin Li Signed-off-by: David S. Miller --- Reading git-diff-tree failed