From: Eric Dumazet Date: Tue, 5 Jun 2012 22:35:24 +0000 (+0000) Subject: virtio-net: fix a race on 32bit arches X-Git-Tag: v3.5-rc3~22^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83a27052c3376793bc879e00e6e6805d6fb7aab9;p=pandora-kernel.git virtio-net: fix a race on 32bit arches commit 3fa2a1df909 (virtio-net: per cpu 64 bit stats (v2)) added a race on 32bit arches. We must use separate syncp for rx and tx path as they can be run at the same time on different cpus. Thus one sequence increment can be lost and readers spin forever. Signed-off-by: Eric Dumazet Cc: Stephen Hemminger Cc: Michael S. Tsirkin Cc: Jason Wang Acked-by: Rusty Russell Acked-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed