From: Michael Chan Date: Tue, 3 Jun 2014 06:08:46 +0000 (-0700) Subject: cnic: Don't take rcu_read_lock in cnic_rcv_netevent() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~78^2~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20f30c2d5ea44925cb83b0fdae78b8600a76b66e;p=pandora-kernel.git cnic: Don't take rcu_read_lock in cnic_rcv_netevent() Because the called function, such as bnx2fc_indicate_netevent(), can sleep, we cannot take rcu_lock(). To prevent the rcu protected ulp_ops from going away, we use the cnic_lock mutex and set the ULP_F_CALL_PENDING flag. The code already waits for ULP_F_CALL_PENDING flag to clear in cnic_unregister_device(). Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed