]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: Add memory barriers to prevent possible race in byte queue limits
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 7 Feb 2012 02:29:06 +0000 (02:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:19 +0000 (09:32 -0700)
commit4680d7ad59b1aeab6bd04d326523cf8e6b305f02
tree33a9373494cfcf2c761e658f2a6329a0ae578d86
parent4f3f1e28d64084bae113cf9d3ca516bdc43046ad
net: Add memory barriers to prevent possible race in byte queue limits

[ Upstream commit b37c0fbe3f6dfba1f8ad2aed47fb40578a254635 ]

This change adds a memory barrier to the byte queue limit code to address a
possible race as has been seen in the past with the
netif_stop_queue/netif_wake_queue logic.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/netdevice.h