diff mbox

[V9fs-developer,fs/9p] Let the read retry on short reads.

Message ID 1282070793-4743-1-git-send-email-jvrao@linux.vnet.ibm.com (mailing list archive)
State Changes Requested, archived
Delegated to: Eric Van Hensbergen
Headers show

Commit Message

jvrao Aug. 17, 2010, 6:46 p.m. UTC
None
diff mbox

Patch

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;