commit | dbaa154178341689faaa08fbf40b94ae5ca1d6c0 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Thu Jun 10 16:12:46 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Jun 15 10:58:39 2010 -0700 |
tree | b50b944ea7ed9b5ee86fd389e6089f30b261e7ae | |
parent | de85d99eb7b595f6751550184b94c1e2f74a828b [diff] |
netpoll: Add locking for netpoll_setup/cleanup As it stands, netpoll_setup and netpoll_cleanup have no locking protection whatsoever. So chaos ensures if two entities try to perform them on the same device. This patch adds RTNL to the equation. The code has been rearranged so that bits that do not need RTNL protection are now moved to the top of netpoll_setup. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>