Re: [pnfs] [RFC 15/85] nfs41: Proper initialization of nfs_client_initdata.rpc_ops

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

 



On Nov. 10, 2008, 22:20 +0200, Benny Halevy <bhalevy@xxxxxxxxxxx> wrote:
> From: Ricardo Labiaga <ricardo.labiaga@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
> Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>

review 11-14: see if we can get rid of that since right now
nfs_v41_clientops == nfs_v40_clientops

> ---
>  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 4e8c641..11c845d 100644
> --- a/fs/nfs/client.c
> +++ b/fs/nfs/client.c
> @@ -1028,6 +1028,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;
--
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