diff options
author | Michael Chan <mchan@broadcom.com> | 2009-08-14 17:49:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-16 03:50:44 +0200 |
commit | c5a889508203446c1abc1d670599b3a816841813 (patch) | |
tree | 9e03c5f9a1dd88bcf8e277cdabbde49f1a6ab3e3 /drivers/net/bnx2.h | |
parent | cnic: Refine registration with bnx2. (diff) | |
download | linux-c5a889508203446c1abc1d670599b3a816841813.tar.xz linux-c5a889508203446c1abc1d670599b3a816841813.zip |
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 '')
-rw-r--r-- | drivers/net/bnx2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index f1edfaa9e56a..a4f12fd0ecd2 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 |