]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: don't stop dealloc kthread too early
authorWei Liu <wei.liu2@citrix.com>
Tue, 12 Aug 2014 10:48:07 +0000 (11:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 03:07:44 +0000 (20:07 -0700)
commit5f55dd7d1fd425f790bab27a35250e4e50bd6936
tree304e4fca43ec1c2907bb0db71f50445ef5fcae32
parenta51b0dcba8b15b3dc9a2f355d0455ad718552d38
xen-netback: don't stop dealloc kthread too early

Reference count the number of packets in host stack, so that we don't
stop the deallocation thread too early. If not, we can end up with
xenvif_free permanently waiting for deallocation thread to unmap grefs.

Reported-by: Thomas Leonard <talex5@gmail.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Zoltan Kiss <zoltan.kiss@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c