• Jason Wang's avatar
    virtio-net: fix refill races during restore · 6cd4ce00
    Jason Wang authored
    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 0741bcb5
    (virtio: net: Add freeze, restore handlers to support S4).
    Cc: Amit Shah <amit.shah@redhat.com>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Michael S. Tsirkin <mst@redhat.com>
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
virtio_net.c 46.2 KB