From: Jason Wang Date: Mon, 30 Dec 2013 03:34:40 +0000 (+0800) Subject: virtio-net: fix refill races during restore X-Git-Tag: v3.13-rc8~16^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cd4ce0099da7702f885b6fa9ebb49e3831d90b4;p=pandora-kernel.git virtio-net: fix refill races during restore During restoring, try_fill_recv() was called with neither napi lock nor napi disabled. This can lead two try_fill_recv() was called in the same time. Fix this by refilling before trying to enable napi. Fixes 0741bcb5584f9e2390ae6261573c4de8314999f2 (virtio: net: Add freeze, restore handlers to support S4). Cc: Amit Shah Cc: Rusty Russell Cc: Michael S. Tsirkin Cc: Eric Dumazet Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed