aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2009-08-14 15:49:45 +0000
committerDavid S. Miller <davem@davemloft.net>2009-08-15 18:50:44 -0700
commitc5a889508203446c1abc1d670599b3a816841813 (patch)
tree9e03c5f9a1dd88bcf8e277cdabbde49f1a6ab3e3 /drivers/net/bnx2.h
parenta3059b12adae868c42629ecf058a94195ef1e958 (diff)
downloadkernel_samsung_smdk4412-c5a889508203446c1abc1d670599b3a816841813.zip
kernel_samsung_smdk4412-c5a889508203446c1abc1d670599b3a816841813.tar.gz
kernel_samsung_smdk4412-c5a889508203446c1abc1d670599b3a816841813.tar.bz2
bnx2: Use mutex on slow path cnic calls.
The slow path calls to the cnic driver are sleepable calls so we cannot use rcu_read_lock(). Use mutex for these slow path calls instead. Signed-off-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index f1edfaa..a4f12fd 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6902,6 +6902,7 @@ struct bnx2 {
u32 idle_chk_status_idx;
#ifdef BCM_CNIC
+ struct mutex cnic_lock;
struct cnic_eth_dev cnic_eth_dev;
#endif