]> Git Repo - linux.git/commit - drivers/net/cnic_if.h
cnic: Fix locking in init/exit calls.
authorMichael Chan <[email protected]>
Fri, 14 Aug 2009 15:49:47 +0000 (15:49 +0000)
committerDavid S. Miller <[email protected]>
Sun, 16 Aug 2009 01:50:47 +0000 (18:50 -0700)
commit7fc1ece40704b150477e548a7a98d285cc418790
treefd7f72c1b92ddde327fb72235a256539ac193b8c
parent681dbd710779e8b8d5bae926f6b11f30df70638b
cnic: Fix locking in init/exit calls.

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 <[email protected]>
Reviewed-by: Benjamin Li <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/cnic.c
drivers/net/cnic_if.h
This page took 0.054274 seconds and 4 git commands to generate.