All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NFS: Retry a zero-length short read
@ 2016-03-16  9:17 Benjamin Coddington
  2016-03-16 13:14 ` Trond Myklebust
  0 siblings, 1 reply; 20+ messages in thread
From: Benjamin Coddington @ 2016-03-16  9:17 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker; +Cc: linux-nfs

A zero-length short read without eof should be retried rather than sending
an error to the application.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
---
 fs/nfs/read.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index eb31e23..7269d42 100644
--- a/fs/nfs/read.c
+++ b/fs/nfs/read.c
@@ -244,11 +244,6 @@ static void nfs_readpage_retry(struct rpc_task *task,
 
 	/* This is a short read! */
 	nfs_inc_stats(hdr->inode, NFSIOS_SHORTREAD);
-	/* Has the server at least made some progress? */
-	if (resp->count == 0) {
-		nfs_set_pgio_error(hdr, -EIO, argp->offset);
-		return;
-	}
 
 	/* For non rpc-based layout drivers, retry-through-MDS */
 	if (!task->tk_ops) {
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-03-22 21:04 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16  9:17 [PATCH] NFS: Retry a zero-length short read Benjamin Coddington
2016-03-16 13:14 ` Trond Myklebust
2016-03-16 14:22   ` Benjamin Coddington
2016-03-16 14:40     ` Trond Myklebust
2016-03-16 14:56       ` Benjamin Coddington
2016-03-16 15:20         ` Benjamin Coddington
2016-03-16 16:22           ` Trond Myklebust
2016-03-16 17:18             ` J. Bruce Fields
2016-03-16 17:36               ` Benjamin Coddington
2016-03-16 19:15                 ` J. Bruce Fields
2016-03-16 19:46                   ` Benjamin Coddington
2016-03-16 19:56                     ` J. Bruce Fields
2016-03-16 20:02                       ` Trond Myklebust
2016-03-17  2:03                         ` Mkrtchyan, Tigran
2016-03-17 10:11                           ` Benjamin Coddington
2016-03-17 13:24                             ` Trond Myklebust
2016-03-17 13:34                               ` Benjamin Coddington
2016-03-22 21:04                         ` J. Bruce Fields
2016-03-16 19:46                 ` J. Bruce Fields
2016-03-16 17:30             ` Benjamin Coddington

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.