Re: [PATCH 3/3] NFSv4.1: Set the RPC_CLNT_CREATE_INFINITE_SLOTS flag for NFSv4.1 transports

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

 



On Sun, 2013-04-14 at 12:55 -0400, Chuck Lever wrote:
> On Apr 14, 2013, at 11:53 AM, Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> wrote:
> 
> > This ensures that the RPC layer doesn't override the NFS session
> > negotiation.
> > 
> > Signed-off-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
> > ---
> > fs/nfs/client.c           | 2 ++
> > fs/nfs/nfs4client.c       | 2 ++
> > include/linux/nfs_fs_sb.h | 1 +
> > 3 files changed, 5 insertions(+)
> > 
> > diff --git a/fs/nfs/client.c b/fs/nfs/client.c
> > index 84d8eae..c513b0c 100644
> > --- a/fs/nfs/client.c
> > +++ b/fs/nfs/client.c
> > @@ -593,6 +593,8 @@ int nfs_create_rpc_client(struct nfs_client *clp,
> > 		args.flags |= RPC_CLNT_CREATE_DISCRTRY;
> > 	if (test_bit(NFS_CS_NORESVPORT, &clp->cl_flags))
> > 		args.flags |= RPC_CLNT_CREATE_NONPRIVPORT;
> > +	if (test_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags))
> > +		args.flags |= RPC_CLNT_CREATE_INFINITE_SLOTS;
> > 
> > 	if (!IS_ERR(clp->cl_rpcclient))
> > 		return 0;
> > diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
> > index a4f2100..9b711e4 100644
> > --- a/fs/nfs/nfs4client.c
> > +++ b/fs/nfs/nfs4client.c
> > @@ -199,6 +199,8 @@ struct nfs_client *nfs4_init_client(struct nfs_client *clp,
> > 	clp->rpc_ops = &nfs_v4_clientops;
> > 
> > 	__set_bit(NFS_CS_DISCRTRY, &clp->cl_flags);
> > +	if (clp->cl_minorversion != 0)
> > +		__set_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags);
> > 	error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_GSS_KRB5I);
> > 	if (error == -EINVAL)
> > 		error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_NULL);
> > diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
> > index d8fdfdc..01b3815 100644
> > --- a/include/linux/nfs_fs_sb.h
> > +++ b/include/linux/nfs_fs_sb.h
> > @@ -40,6 +40,7 @@ struct nfs_client {
> > #define NFS_CS_NORESVPORT	0		/* - use ephemeral src port */
> > #define NFS_CS_DISCRTRY		1		/* - disconnect on RPC retry */
> > #define NFS_CS_MIGRATION	2		/* - transparent state migr */
> > +#define NFS_CS_INFINITE_SLOTS	3		/* - transparent state migr */
> 
> Is that comment correct?

Doh! I'll fix that...

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@xxxxxxxxxx
www.netapp.com
--
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