]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: add a missing synchronize_net()
authorEric Dumazet <edumazet@google.com>
Wed, 16 Nov 2016 06:24:12 +0000 (22:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 20:09:29 +0000 (15:09 -0500)
commiteb4362dd164ababa30de15586f482b43b49c3218
tree9fbe435e14eb3f7b1ae33d14181bc6ee42739b54
parent67aabf034ab8145f9aa924a190c59b2aa80b2db3
virtio-net: add a missing synchronize_net()

It seems many drivers do not respect napi_hash_del() contract.

When napi_hash_del() is used before netif_napi_del(), an RCU grace
period is needed before freeing NAPI object.

Fixes: 5a00c7fd64c9 ("virtio-net: rx busy polling support")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c