net: make sure napi_list is safe for RCU traversal
authorJakub Kicinski <kuba@kernel.org>
Wed, 9 Sep 2020 17:37:53 +0000 (10:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 20:08:46 +0000 (13:08 -0700)
commit5251ef82993252da0f63616676905da38b40778a
treecbf94ed6cf85789793620d8bd136c61de728d175
parent4d092dd2041a5f328410ad16d63b8606c24e8604
net: make sure napi_list is safe for RCU traversal

netpoll needs to traverse dev->napi_list under RCU, make
sure it uses the right iterator and that removal from this
list is handled safely.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/netpoll.c