提交 45228440 编写于 作者: T Trond Myklebust 提交者: Anna Schumaker

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: NOlga Kornievskaia <aglo@umich.edu>
Fixes: 2dc23aff ("NFS: ENOMEM should also be a fatal error.")
Cc: stable@vger.kernel.org
Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
上级 c5e483b7
...@@ -841,6 +841,7 @@ static inline bool nfs_error_is_fatal_on_server(int err) ...@@ -841,6 +841,7 @@ static inline bool nfs_error_is_fatal_on_server(int err)
case 0: case 0:
case -ERESTARTSYS: case -ERESTARTSYS:
case -EINTR: case -EINTR:
case -ENOMEM:
return false; return false;
} }
return nfs_error_is_fatal(err); return nfs_error_is_fatal(err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册