diff options
author | Jamie Liu <jamieliu@google.com> | 2021-01-14 17:32:38 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-14 17:35:07 -0800 |
commit | e57ebcd37a7b9f98d80e594f2c0baf2220d7b830 (patch) | |
tree | c48d591cf3a7f24db2455f5d56b64674ea838baf /pkg/sync/seqcount.go | |
parent | 95371cff350ef5c22c0e0b76ef9474c16e29a6f6 (diff) |
Simplify the pipe implementation.
- Remove the pipe package's dependence on the buffer package, which becomes
unused as a result. The buffer package is currently intended to serve two use
cases, pipes and temporary buffers, and does neither optimally as a result;
this change facilitates retooling the buffer package to better serve the
latter.
- Pass callbacks taking safemem.BlockSeq to the internal pipe I/O methods,
which makes most callbacks trivial.
- Fix VFS1's splice() and tee() to immediately return if a pipe returns a
partial write.
PiperOrigin-RevId: 351911375
Diffstat (limited to 'pkg/sync/seqcount.go')
0 files changed, 0 insertions, 0 deletions