Skip to content

Commit 4522844

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFS: Memory allocation failures are not server fatal errors
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: 2dc23af ("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>
1 parent c5e483b commit 4522844

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/nfs/internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ static inline bool nfs_error_is_fatal_on_server(int err)
841841
case 0:
842842
case -ERESTARTSYS:
843843
case -EINTR:
844+
case -ENOMEM:
844845
return false;
845846
}
846847
return nfs_error_is_fatal(err);

0 commit comments

Comments
 (0)