xen-netback: protect resource cleaning on XenBus disconnect

[ Upstream commit f16f1df65f ]

vif->lock is used to protect statistics gathering agents from using the
queue structure during cleaning.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Igor Druzhinin 2017-01-17 20:49:38 +00:00 • committed by Greg Kroah-Hartman
commit da805bc788
2 changed files with 6 additions and 2 deletions