Skip to content
Commit 51a92c0f authored by Jens Axboe's avatar Jens Axboe
Browse files

splice: fix offset mangling with direct splicing (sendfile)



If the output actor doesn't transfer the full amount of data, we will
increment ppos too much. Two related bugs in there:

- We need to break out and return actor() retval if it is shorted than
  what we spliced into the pipe.

- Adjust ppos only according to actor() return.

Also fix loop problem in generic_file_splice_read(), it should not keep
going when data has already been transferred.

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