[PATCH 22/46] nfs41: sunrpc: use private void pointer in rpc_clnt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andy Adamson <andros@xxxxxxxxxx>

Set the rpc_clnt->cl_private to back point to the struct nfs_client
and use the nfs_client->cl_minorveraion to perform NFSv4.0 vrs NFSv4.1
encoding.

[was nfs41: sunrpc: add private void pointer to rpc_clnt]
    During the review, we thought this could be a struct nfs_server pointer. But
    that makes no sense given that all struct nfs_server's share a struct
    nfs_client->cl_rpcclient.

    NFS uses this as a backpointer to struct nfs_client, and will use the
    cl_minorversion.
Signed-off-by: Andy Adamson <andros@xxxxxxxxxx>
Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>
---
 fs/nfs/client.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index c1536d9..ace6e91 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -541,6 +541,7 @@ static int nfs_create_rpc_client(struct nfs_client *clp,
 	}
 
 	clp->cl_rpcclient = clnt;
+	clnt->cl_private = clp;
 	return 0;
 }
 
-- 
1.6.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux