aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-12-29 00:14:52 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-31 17:06:48 -0500
commite44c39bd8478bf9e41cbc611c74b5879a7b29f58 (patch)
treef5b0f6b3af369fafafa75fd072b2ad093a95e445 /include
parentbfff6e92a33dce6121a3d83ef3809e9063b2734e (diff)
[NET]: Add memory barrrier to netif_poll_enable()
When a driver writer calls this, they generally expect that all previous stores and modifications they've made will be visible before netif_poll_enable() executes, so ensure this. Noticed by Ben H. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 6be767c76b37..fea0d9db6846 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -906,6 +906,7 @@ static inline void netif_poll_disable(struct net_device *dev)
906 906
907static inline void netif_poll_enable(struct net_device *dev) 907static inline void netif_poll_enable(struct net_device *dev)
908{ 908{
909 smp_mb__before_clear_bit();
909 clear_bit(__LINK_STATE_RX_SCHED, &dev->state); 910 clear_bit(__LINK_STATE_RX_SCHED, &dev->state);
910} 911}
911 912