OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] NFS: parse DNS cache in proper network namespace context
[PATCH] NFS: parse DNS cache in proper network namespace context [message #44964] Thu, 19 January 2012 14:51
Stanislav Kinsbursky is currently offline  Stanislav Kinsbursky
Messages: 683
Registered: October 2011
Senior Member
This patch replaces "init_net" with cache's owner net in rpc_pton() call.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>

---
fs/nfs/dns_resolve.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c
index 7edc62a..be9a530 100644
--- a/fs/nfs/dns_resolve.c
+++ b/fs/nfs/dns_resolve.c
@@ -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));
Previous Topic: [PATCH v5 0/6] SUNRPC: rcbind clients virtualization
Next Topic: [PATCH] NFS: decode destination address in proper network namespace context
Goto Forum:
  


Current Time: Tue Mar 19 09:25:18 GMT 2024

Total time taken to generate the page: 0.02455 seconds