From: Russell King Date: Mon, 7 Jul 2014 23:22:49 +0000 (+0100) Subject: net: fec: use netif_tx_disable() rather than netif_stop_queue() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~222^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b49cd504c46dd729011049c91cf11ea72df01aef;p=pandora-kernel.git net: fec: use netif_tx_disable() rather than netif_stop_queue() We use netif_stop_queue() in several places where we want to ensure that the start_xmit function is not running. netif_stop_queue() is not sufficient to achieve that - it merely sets a flag to indicate that the transmit queue(s) should not be run. netif_tx_disable() gives this guarantee, since it takes the transmit queue lock while marking the queue stopped. This will wait for the transmit function to complete before returning. Acked-by: Fugang Duan Signed-off-by: Russell King Signed-off-by: David S. Miller --- Reading git-diff-tree failed