From: Jens Axboe Date: Wed, 20 Feb 2008 09:34:51 +0000 (+0100) Subject: splice: only return -EAGAIN if there's hope of more data X-Git-Tag: v2.6.25-rc4~98^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02cf01aea5af7a4d1a38045712fe11bffcc206b0;p=pandora-kernel.git splice: only return -EAGAIN if there's hope of more data sys_tee() currently is a bit eager in returning -EAGAIN, it may do so even if we don't have a chance of anymore data becoming available. So improve the logic and only return -EAGAIN if we have an attached writer to the input pipe. Reported by Johann Felix Soden and Patrick McManus . Tested-by: Johann Felix Soden Signed-off-by: Jens Axboe --- Reading git-diff-tree failed