summaryrefslogtreecommitdiffstats
path: root/include/linux/netpoll.h
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/netpoll.h
parentde85d99eb7b595f6751550184b94c1e2f74a828b (diff)
downloadop-kernel-dev-dbaa154178341689faaa08fbf40b94ae5ca1d6c0.zip
op-kernel-dev-dbaa154178341689faaa08fbf40b94ae5ca1d6c0.tar.gz
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/netpoll.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud