Skip to content
Commit 8191ecd1 authored by Jens Axboe's avatar Jens Axboe
Browse files

splice: fix infinite loop in generic_file_splice_read()



There's a quirky loop in generic_file_splice_read() that could go
on indefinitely, if the file splice returns 0 permanently (and not
just as a temporary condition). Get rid of the loop and pass
back -EAGAIN correctly from __generic_file_splice_read(), so we
handle that condition properly as well.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent f4be31ec
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