All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [fs/9p] Let the read retry on short reads.
@ 2010-08-17 18:46 Venkateswararao Jujjuri (JV)
  2010-08-17 19:45 ` [V9fs-developer] " Latchesar Ionkov
  0 siblings, 1 reply; 6+ messages in thread
From: Venkateswararao Jujjuri (JV) @ 2010-08-17 18:46 UTC (permalink / raw)
  To: v9fs-developer; +Cc: linux-fsdevel, Venkateswararao Jujjuri (JV)

A simple fix to retry on short reads.

Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
---
 fs/9p/vfs_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index 2695491..cae984d 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -166,7 +166,7 @@ v9fs_file_readn(struct file *filp, char *data, char __user *udata, u32 count,
 		offset += n;
 		count -= n;
 		total += n;
-	} while (count > 0 && n == size);
+	} while (count > 0);
 
 	if (n < 0)
 		total = n;
-- 
1.6.5.2


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

end of thread, other threads:[~2010-08-23 16:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 18:46 [PATCH] [fs/9p] Let the read retry on short reads Venkateswararao Jujjuri (JV)
2010-08-17 19:45 ` [V9fs-developer] " Latchesar Ionkov
2010-08-17 20:10   ` Venkateswararao Jujjuri (JV)
2010-08-17 20:39     ` Latchesar Ionkov
2010-08-23 16:11       ` Eric Van Hensbergen
2010-08-23 16:43         ` Latchesar Ionkov

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.