diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-06-10 12:12:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-15 13:58:39 -0400 |
commit | dbaa154178341689faaa08fbf40b94ae5ca1d6c0 (patch) | |
tree | b50b944ea7ed9b5ee86fd389e6089f30b261e7ae /include/linux/netdevice.h | |
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>
Diffstat (limited to 'include/linux/netdevice.h')
0 files changed, 0 insertions, 0 deletions