aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-06-10 16:12:46 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-15 10:58:39 -0700
commitdbaa154178341689faaa08fbf40b94ae5ca1d6c0 (patch)
treeb50b944ea7ed9b5ee86fd389e6089f30b261e7ae /include/linux
parentnetpoll: Fix RCU usage (diff)
downloadlinux-dev-dbaa154178341689faaa08fbf40b94ae5ca1d6c0.tar.xz
linux-dev-dbaa154178341689faaa08fbf40b94ae5ca1d6c0.zip
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions