Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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>

+1
+1
include/linux/netdevice.h
··· 906 906 907 907 static inline void netif_poll_enable(struct net_device *dev) 908 908 { 909 + smp_mb__before_clear_bit(); 909 910 clear_bit(__LINK_STATE_RX_SCHED, &dev->state); 910 911 } 911 912