From: Linus Torvalds <torvalds@linux-foundation.org>
To: Jens Axboe <jens.axboe@oracle.com>
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 10:27:38 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.0.999.0707131025550.20061@woody.linux-foundation.org> (raw)
In-Reply-To: <20070713093459.GB5328@kernel.dk>
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?
Linus
next prev parent reply other threads:[~2007-07-13 17:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 9:28 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 [this message]
2007-07-13 17:39 ` Jens Axboe
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=alpine.LFD.0.999.0707131025550.20061@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nix.or.die@googlemail.com \
/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
all inboxes | Powered by JetHome®