public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Gabriel C <nix.or.die@googlemail.com>,
	linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: On current git head webservers stopped working
Date: Fri, 13 Jul 2007 19:39:49 +0200	[thread overview]
Message-ID: <20070713173949.GW5328@kernel.dk> (raw)
In-Reply-To: <alpine.LFD.0.999.0707131025550.20061@woody.linux-foundation.org>

On Fri, Jul 13 2007, Linus Torvalds wrote:
> 
> 
> On Fri, 13 Jul 2007, Jens Axboe wrote:
> > 
> > Does this work?
> 
> Ok, so it apparently works, but:
> 
> > diff --git a/fs/splice.c b/fs/splice.c
> > index ed2ce99..92646aa 100644
> > --- a/fs/splice.c
> > +++ b/fs/splice.c
> > @@ -491,7 +491,7 @@ ssize_t generic_file_splice_read(struct file *in, loff_t *ppos,
> >  
> >  	ret = 0;
> >  	spliced = 0;
> > -	while (len) {
> > +	while (len && !spliced) {
> >  		ret = __generic_file_splice_read(in, ppos, pipe, len, flags);
> 
> This hunk basically make sthe whole "while" loop pointless. You'll never 
> go through it more than once.
> 
> So at that point, maybe the loop should be removed entirely? Or maybe this 
> part of the patch is wrong, and the fix was in the _other_ parts?

It'll likely work without that hunk, and you are right - the loop
should just go now. I'll update that piece in a sub sequent patch!

-- 
Jens Axboe


  reply	other threads:[~2007-07-13 17:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-13  9:28 On current git head webservers stopped working Gabriel C
2007-07-13  9:34 ` Jens Axboe
2007-07-13  9:49   ` Gabriel C
2007-07-13 10:00     ` Jens Axboe
2007-07-13 10:05       ` Christoph Hellwig
2007-07-13 11:00         ` Jens Axboe
2007-07-13 10:09       ` Gabriel C
2007-07-13 11:11         ` Jens Axboe
2007-07-13 13:52   ` walt
2007-07-13 17:27   ` Linus Torvalds
2007-07-13 17:39     ` Jens Axboe [this message]
2007-07-13 18:17       ` Jens Axboe

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=20070713173949.GW5328@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nix.or.die@googlemail.com \
    --cc=torvalds@linux-foundation.org \
    /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