https://github.com/torvalds/linux
Revision 7fc1ece40704b150477e548a7a98d285cc418790 authored by Michael Chan on 14 August 2009, 15:49:47 UTC, committed by David S. Miller on 16 August 2009, 01:50:47 UTC
The slow path ulp_init and ulp_exit calls to the bnx2i driver
are sleepable calls and therefore should not be protected using
rcu_read_lock.  Fix it by using mutex and refcount during these
calls.  cnic_unregister_driver() will now wait for the refcount
to go to zero before completing the call.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 681dbd7
History
Tip revision: 7fc1ece40704b150477e548a7a98d285cc418790 authored by Michael Chan on 14 August 2009, 15:49:47 UTC
cnic: Fix locking in init/exit calls.
Tip revision: 7fc1ece
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 952 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 148.3 KB
Makefile -rw-r--r-- 53.9 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top