diff options
| author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-05-14 10:08:10 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-06 08:47:56 +0200 |
| commit | 421118d0194b67831cb7cd62e78613cb555c32a0 (patch) | |
| tree | c091e3162e90dae95a0a37f69d1ecce0a6c1cc0e | |
| parent | 82aa95da9c52359eed41cf2ba1b6c32e4908af66 (diff) | |
| download | linux-421118d0194b67831cb7cd62e78613cb555c32a0.tar.gz linux-421118d0194b67831cb7cd62e78613cb555c32a0.tar.bz2 linux-421118d0194b67831cb7cd62e78613cb555c32a0.zip | |
NFS: Memory allocation failures are not server fatal errors
commit 452284407c18d8a522c3039339b1860afa0025a8 upstream.
We need to filter out ENOMEM in nfs_error_is_fatal_on_server(), because
running out of memory on our client is not a server error.
Reported-by: Olga Kornievskaia <aglo@umich.edu>
Fixes: 2dc23afffbca ("NFS: ENOMEM should also be a fatal error.")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | fs/nfs/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 465e39ff018d..b3b8ac4a9ace 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -827,6 +827,7 @@ static inline bool nfs_error_is_fatal_on_server(int err) case 0: case -ERESTARTSYS: case -EINTR: + case -ENOMEM: return false; } return nfs_error_is_fatal(err); |
