xen-netback: fix race condition on XenBus disconnect
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Fri, 10 Mar 2017 21:36:22 +0000 (21:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:44:43 +0000 (23:44 -0700)
commitb17075d5c1988b83f840d272c795ac17d57ce804
treeb760831992b881a42e1c3ad3990855ac8a989088
parente37791ec1ad785b59022ae211f63a16189bacebf
xen-netback: fix race condition on XenBus disconnect

In some cases during XenBus disconnect event handling and subsequent
queue resource release there may be some TX handlers active on
other processors. Use RCU in order to synchronize with them.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c
drivers/net/xen-netback/xenbus.c