Re: [PATCH net] virtio-net: add a missing synchronize_net()

2016-11-16 Thread David Miller
From: Eric Dumazet Date: Tue, 15 Nov 2016 22:24:12 -0800 > From: Eric Dumazet > > 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: 91815639d880 ("virt

Re: [PATCH net] virtio-net: add a missing synchronize_net()

2016-11-16 Thread Michael S. Tsirkin
On Tue, Nov 15, 2016 at 10:24:12PM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > 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: 91815639d880 ("v

[PATCH net] virtio-net: add a missing synchronize_net()

2016-11-15 Thread Eric Dumazet
From: Eric Dumazet 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: 91815639d880 ("virtio-net: rx busy polling support") Signed-off-by: Eric Dumazet Cc: Jason Wa