From: "Venkateswararao Jujjuri (JV)" <jvrao@linux.vnet.ibm.com>
To: Latchesar Ionkov <lucho@ionkov.net>
Cc: v9fs-developer@lists.sourceforge.net, linux-fsdevel@vger.kernel.org
Subject: Re: [V9fs-developer] [PATCH] [fs/9p] Let the read retry on short reads.
Date: Tue, 17 Aug 2010 13:10:58 -0700 [thread overview]
Message-ID: <4C6AECD2.1050401@linux.vnet.ibm.com> (raw)
In-Reply-To: <AANLkTimuYHNLeFBMB-EUOztipDSE=hPJAaJtxWD5=Xz1@mail.gmail.com>
Latchesar Ionkov wrote:
> What problem does that change solve? It adds an additional call when
> EOF is reached. The way most user apps are written, that'll mean two
> calls that return Rread count 0.
>
> I was thinking of doing a similar change, but decided against it.
Yeah I ran into the issue when tried with o_direct and dd.
Can we depend on the application retrying?
Yes I also observed the behavior you are mentioning (2 Rreads returning 0)
Wondering if we have a better way to address this.
Thanks,
JV
>
> Thanks,
> Lucho
>
> On Tue, Aug 17, 2010 at 12:46 PM, Venkateswararao Jujjuri (JV)
> <jvrao@linux.vnet.ibm.com> wrote:
>> 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
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> V9fs-developer mailing list
>> V9fs-developer@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/v9fs-developer
>>
next prev parent reply other threads:[~2010-08-17 20:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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) [this message]
2010-08-17 20:39 ` Latchesar Ionkov
2010-08-23 16:11 ` Eric Van Hensbergen
2010-08-23 16:43 ` Latchesar Ionkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C6AECD2.1050401@linux.vnet.ibm.com \
--to=jvrao@linux.vnet.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=lucho@ionkov.net \
--cc=v9fs-developer@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).