From: Trond Myklebust Date: Sun, 7 Apr 2019 17:58:59 +0000 (-0400) Subject: NFS: Consider ETIMEDOUT to be a fatal error X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=11982a7c0f654ededc776bc81d8a0c51d3ee8d1c;p=android-x86%2Fkernel.git NFS: Consider ETIMEDOUT to be a fatal error When we introduce the 'softerr' mount option, we will see the RPC layer returning ETIMEDOUT errors if the server is unresponsive. We want to consider those errors to be fatal on par with the EIO errors that are returned by ordinary 'soft' timeouts.. Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index c7cf23ae6597..3cefd0ed01be 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -766,6 +766,7 @@ static inline bool nfs_error_is_fatal(int err) case -ESTALE: case -E2BIG: case -ENOMEM: + case -ETIMEDOUT: return true; default: return false;