mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
NFS: Do not report flush errors in nfs_write_end()
If we do flush cached writebacks in nfs_write_end() due to the imminent
expiration of an RPCSEC_GSS session, then we should defer reporting any
resulting errors until the calls to file_check_and_advance_wb_err() in
nfs_file_write() and nfs_file_fsync().
Fixes: 6fbda89b25
("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>
This commit is contained in:
parent
e6005436f6
commit
d95b26650e
@ -386,11 +386,8 @@ static int nfs_write_end(struct file *file, struct address_space *mapping,
|
|||||||
return status;
|
return status;
|
||||||
NFS_I(mapping->host)->write_io += copied;
|
NFS_I(mapping->host)->write_io += copied;
|
||||||
|
|
||||||
if (nfs_ctx_key_to_expire(ctx, mapping->host)) {
|
if (nfs_ctx_key_to_expire(ctx, mapping->host))
|
||||||
status = nfs_wb_all(mapping->host);
|
nfs_wb_all(mapping->host);
|
||||||
if (status < 0)
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
return copied;
|
return copied;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user