Skip to content
Commit 02cf01ae authored by Jens Axboe's avatar Jens Axboe Committed by Jens Axboe
Browse files

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 <johfel@gmx.de> and
Patrick McManus <mcmanus@ducksong.com>.

Tested-by: default avatarJohann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 5d87a052
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment