Skip to content

Commit cea9ba7

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFS: Do not report EINTR/ERESTARTSYS as mapping errors
If the attempt to flush data was interrupted due to a local signal, then just requeue the writes back for I/O. Fixes: 6fbda89 ("NFS: Replace custom error reporting mechanism with generic one") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent 42226c9 commit cea9ba7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfs/write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ static void nfs_async_write_error(struct list_head *head, int error)
14441444
while (!list_empty(head)) {
14451445
req = nfs_list_entry(head->next);
14461446
nfs_list_remove_request(req);
1447-
if (nfs_error_is_fatal(error))
1447+
if (nfs_error_is_fatal_on_server(error))
14481448
nfs_write_error(req, error);
14491449
else
14501450
nfs_redirty_request(req);

0 commit comments

Comments
 (0)