]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d922776c501904578ac232253c9202075a0ab43
tree9e03c5f9a1dd88bcf8e277cdabbde49f1a6ab3e3
parent011450c340e278afd9c3d77c24fdf45290d27e93
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