Presently nfserr_jukebox is being returned by nfsd for create_session request if server is unable to allocate a session slot. This may be treated as NFS4ERR_DELAY by the clients and which may continue to re-try create_session in loop leading NFSv4.1+ mounts in hung state. nfsd should return nfserr_nospc in this case as per rfc5661(section-18.36.4 subpoint 4. Session creation). Signed-off-by: Manjunath Patil <manjunath.b.patil@xxxxxxxxxx> --- fs/nfsd/nfs4state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 8571414..3734e08 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -2716,7 +2716,7 @@ static __be32 check_forechannel_attrs(struct nfsd4_channel_attrs *ca, struct nfs */ ca->maxreqs = nfsd4_get_drc_mem(ca); if (!ca->maxreqs) - return nfserr_jukebox; + return nfserr_nospc; return nfs_ok; } -- 1.8.3.1 -- 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