[pnfs] [PATCH 1/1] nfs41: Proper initialization of nfs_client_initdata.rpc_ops
Benny Halevy
bhalevy at panasas.com
Fri Jun 27 05:03:30 EDT 2008
Merged onto the nfs41 branch
Thanks!
Benny
On Jun. 27, 2008, 8:04 +0300, Ricardo Labiaga <ricardo.labiaga at netapp.com> wrote:
> 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;
More information about the pNFS
mailing list