Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e44c39bd8478bf9e41cbc611c74b5879a7b29f58
Commit:     e44c39bd8478bf9e41cbc611c74b5879a7b29f58
Parent:     bfff6e92a33dce6121a3d83ef3809e9063b2734e
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 28 21:14:52 2006 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Dec 31 14:06:48 2006 -0800

    [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 <[EMAIL PROTECTED]>
---
 include/linux/netdevice.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 6be767c..fea0d9d 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)
 
 static inline void netif_poll_enable(struct net_device *dev)
 {
+       smp_mb__before_clear_bit();
        clear_bit(__LINK_STATE_RX_SCHED, &dev->state);
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to