]> 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)
commit2b340067a12e080b5b545daae6fa3fd53d929f1e
tree304e4fca43ec1c2907bb0db71f50445ef5fcae32
parent4a5b5b357317e158d71feabdd423db060d1be815
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