NFSv4: Fail mounts if the lease setup times out
[ Upstream commit af94dca79b1296a6db7b8b47cd43be8e94fce8bb ]
If the server is down when the client is trying to mount, so that the
calls to exchange_id or create_session fail, then we should allow the
mount system call to fail rather than hang and block other mount/umount
calls.
BUG=b/357142742
TEST=presubmit
RELEASE_NOTE=None
cos-patch: bug
Reported-by: Oleksandr Tymoshenko <ovt@google.com>
Change-Id: I5e821531c0cc40f232b60d271204594d57fbf9d8
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Oleksandr Tymoshenko <ovt@google.com>
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/83888
Main-Branch-Verified: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
Reviewed-by: Kevin Berry <kpberry@google.com>
1 file changed