diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-20 07:50:53 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:19 -0500 |
commit | 4cb54ca2069903121e4c03ec427147c47bed5755 (patch) | |
tree | 2d156d3d9f37a385a27f444f315c0498f0e9475f /fs/lockd | |
parent | babea479b75a9ea3d84ace6d880513e18397a8bb (diff) |
SUNRPC: search for service transports in network namespace context
Service transports are parametrized by network namespace. And thus lookup of
transport instance have to take network namespace into account.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index c061b9aa7ddb..ff379ff7761f 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c | |||
@@ -193,7 +193,7 @@ static int create_lockd_listener(struct svc_serv *serv, const char *name, | |||
193 | { | 193 | { |
194 | struct svc_xprt *xprt; | 194 | struct svc_xprt *xprt; |
195 | 195 | ||
196 | xprt = svc_find_xprt(serv, name, family, 0); | 196 | xprt = svc_find_xprt(serv, name, &init_net, family, 0); |
197 | if (xprt == NULL) | 197 | if (xprt == NULL) |
198 | return svc_create_xprt(serv, name, &init_net, family, port, | 198 | return svc_create_xprt(serv, name, &init_net, family, port, |
199 | SVC_SOCK_DEFAULTS); | 199 | SVC_SOCK_DEFAULTS); |