SUNRPC: service destruction in network namespace context
commit7b147f1ff267d12e0d189ca3d4156ed5a76b8d99
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Tue, 31 Jan 2012 10:09:17 +0000 (31 14:09 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Feb 2012 05:19:45 +0000 (15 00:19 -0500)
tree651496e6e08521de934b2ad0953e2b81d3f5da2f
parent3a22bf506c9df47e93e8dc8a68d86cd8ae384d98
SUNRPC: service destruction in network namespace context

v2: Added comment to BUG_ON's in svc_destroy() to make code looks clearer.

This patch introduces network namespace filter for service destruction
function.
Nothing special here - just do exactly the same operations, but only for
tranports in passed networks namespace context.
BTW, BUG_ON() checks for empty service transports lists were returned into
svc_destroy() function. This is because of swithing generic svc_close_all() to
networks namespace dependable svc_close_net().

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/svcsock.h
net/sunrpc/svc.c
net/sunrpc/svc_xprt.c