summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds2008-05-28 17:00:51 +0200
committerLinus Torvalds2008-05-28 17:00:51 +0200
commitb4412323cc954bd0a2144b1c2ed573dd2eddb32c (patch)
treea0dd14e6d46efbb36a0898c158e8efb49e4a22ef /kernel
parentFRV: Specify the minimum slab/kmalloc alignment (diff)
parentcfq-iosched: fix RCU problem in cfq_cic_lookup() (diff)
downloadkernel-qcow2-linux-b4412323cc954bd0a2144b1c2ed573dd2eddb32c.tar.gz
kernel-qcow2-linux-b4412323cc954bd0a2144b1c2ed573dd2eddb32c.tar.xz
kernel-qcow2-linux-b4412323cc954bd0a2144b1c2ed573dd2eddb32c.zip
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block: cfq-iosched: fix RCU problem in cfq_cic_lookup() block: make blktrace use per-cpu buffers for message notes Added in elevator switch message to blktrace stream Added in MESSAGE notes for blktraces block: reorder cfq_queue to save space on 64bit builds block: Move the second call to get_request to the end of the loop splice: handle try_to_release_page() failure splice: fix sendfile() issue with relay
Diffstat (limited to 'kernel')
-rw-r--r--kernel/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/relay.c b/kernel/relay.c
index bc24dcdc570f..7de644cdec43 100644
--- a/kernel/relay.c
+++ b/kernel/relay.c
@@ -1191,7 +1191,7 @@ static ssize_t relay_file_splice_read(struct file *in,
ret = 0;
spliced = 0;
- while (len) {
+ while (len && !spliced) {
ret = subbuf_splice_actor(in, ppos, pipe, len, flags, &nonpad_ret);
if (ret < 0)
break;