> pipe_to_sg() tries to steal the page of each pipe buffer and pass it to > the host as it is. When the steal fails, it copies the data into a page > of its own. > > Pages written into the pipe with write(), gifted user pages and page > cache pages can be stolen. The ftrace ring buffer pages that > virtio-trace splices cannot, so that in-tree user always gets the copy. > > Always copy. The data that reaches the host does not change. > > Preparation for removing ->try_steal() from pipe buffers. > > Suggested-by: Linus Torvalds <[email protected]> > Signed-off-by: Kiryl Shutsemau (Meta) <[email protected]>
Sashiko has reviewed this patch and found no issues. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=1
