NFS: Fix spurious EIO read errors
If the client attempts to read a page, but the read fails due to some spurious error (e.g. an ACCESS error or a timeout, ...) then we need to allow other processes to retry. Also try to report errors correctly when doing a synchronous readpage. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
这个提交包含在:
@@ -599,18 +599,6 @@ static void nfs_write_error(struct nfs_page *req, int error)
|
||||
nfs_release_request(req);
|
||||
}
|
||||
|
||||
static bool
|
||||
nfs_error_is_fatal_on_server(int err)
|
||||
{
|
||||
switch (err) {
|
||||
case 0:
|
||||
case -ERESTARTSYS:
|
||||
case -EINTR:
|
||||
return false;
|
||||
}
|
||||
return nfs_error_is_fatal(err);
|
||||
}
|
||||
|
||||
/*
|
||||
* Find an associated nfs write request, and prepare to flush it out
|
||||
* May return an error if the user signalled nfs_wait_on_request().
|
||||
|
在新工单中引用
屏蔽一个用户