NFS: parse DNS cache in proper network namespace context
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Thu, 19 Jan 2012 14:51:04 +0000 (18:51 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2012 00:28:17 +0000 (19:28 -0500)
This patch replaces "init_net" with cache's owner net in rpc_pton() call.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dns_resolve.c

index 7edc62a8a64fa23f81fa140205c2548f97245083..be9a530987b3de3ec0458159e6ee178084dda9c6 100644 (file)
@@ -224,7 +224,7 @@ static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen)
        len = qword_get(&buf, buf1, sizeof(buf1));
        if (len <= 0)
                goto out;
-       key.addrlen = rpc_pton(&init_net, buf1, len,
+       key.addrlen = rpc_pton(cd->net, buf1, len,
                        (struct sockaddr *)&key.addr,
                        sizeof(key.addr));