[pnfs] [PATCH 1/1] nfs41: Proper initialization of nfs_client_initdata.rpc_ops
Ricardo Labiaga
ricardo.labiaga at netapp.com
Fri Jun 27 01:04:12 EDT 2008
The rpc_ops needs to be initialized to the proper minor version clientops
so that nfs_get_client() can find an existing nfs_client structure if
a mount to the same server has already occurred.
This enables the traditional sharing of nfs_client structures, as well
as fixes the problem where mounts of the same filesystem on the same
mountpoint were not being detected correctly.
Signed-off-by: Ricardo Labiaga <ricardo.labiaga at netapp.com>
---
fs/nfs/client.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 32cf264..e4d29f8 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1047,6 +1047,8 @@ static int nfs4_set_client(struct nfs_server *server,
.hostname = hostname,
.addr = addr,
.addrlen = addrlen,
+ .rpc_ops =
+ nfsv4_minorversion_clientops[server->minorversion],
.proto = proto,
};
struct nfs_client *clp;
--
1.5.3.3
More information about the pNFS
mailing list