From: Manjunath Patil <manjunath.b.patil@oracle.com>
To: linux-nfs@vger.kernel.org
Cc: manjunath.b.patil@oracle.com
Subject: [PATCH nfs-utils] mount: handle ENOSPC in nfs_autonegotiate()
Date: Thu, 21 Jun 2018 09:34:20 -0700 [thread overview]
Message-ID: <1529598860-1960-1-git-send-email-manjunath.b.patil@oracle.com> (raw)
The server may return NFS4ERR_NOSPC during NFSv4.1+ mount if there is a
memory pressure to allocate a DRC slot for session being created. In
such cases, try with lower nfs versions, which may succeed as DRC is
shared by clients.
Signed-off-by: Manjunath Patil <manjunath.b.patil@oracle.com>
---
utils/mount/stropts.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index d1b0708..7e97a88 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -881,6 +881,10 @@ check_result:
case EINVAL:
/* A less clear indication that our client
* does not support NFSv4 minor version. */
+ case ENOSPC:
+ /* Server returned NFS4ERR_NOSPC for create session [NFSv4.1+].
+ * Try with lower NFS versions which share DRC amoung clients and
+ * hence low memory may be ok. */
case EACCES:
/* An unclear indication that the server
* may not support NFSv4 minor version. */
--
1.8.3.1
next reply other threads:[~2018-06-21 16:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 16:34 Manjunath Patil [this message]
2018-06-21 16:59 ` [PATCH nfs-utils] mount: handle ENOSPC in nfs_autonegotiate() Trond Myklebust
2018-06-25 15:32 ` Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1529598860-1960-1-git-send-email-manjunath.b.patil@oracle.com \
--to=manjunath.b.patil@oracle.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).