From: Yevgeny Petrilin Date: Fri, 3 Aug 2012 00:38:37 +0000 (+0000) Subject: net/mlx4_en: Fixing TX queue stop/wake flow X-Git-Tag: v3.6-rc2~24^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c18520bd1b244fe8e3ac5358137321780a70d6e7;p=pandora-kernel.git net/mlx4_en: Fixing TX queue stop/wake flow Removing the ring->blocked flag, it is redundant and leads to a race: We close the TX queue and then set the "blocked" flag. Between those 2 operations the completion function can check the "blocked" flag, sees that it is 0, and wouldn't open the TX queue. Using netif_tx_queue_stopped to check the state of the queue to avoid this race. Signed-off-by: Yevgeny Petrilin Signed-off-by: David S. Miller --- Reading git-diff-tree failed