bnx2: Use mutex on slow path cnic calls.
authorMichael Chan <mchan@broadcom.com>
Fri, 14 Aug 2009 15:49:45 +0000 (15:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Aug 2009 01:50:44 +0000 (18:50 -0700)
commitc5a889508203446c1abc1d670599b3a816841813
tree9e03c5f9a1dd88bcf8e277cdabbde49f1a6ab3e3
parenta3059b12adae868c42629ecf058a94195ef1e958
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>
drivers/net/bnx2.c
drivers/net/bnx2.h