forked from ceph/ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buffer: attempt to size raw_pipe buffers
Make sure the requested length is below the maximum pipe size for now, since we're only using one pipe and splicing once into and out of it. The default max is 1MB on recent kernels, so this isn't such a terrible limitation. To get around this we could use multiple pipes, or keep both source and destination fds open at the same time and call splice many times. This is more usual usage for splice, but would require a lot more work to restructure the filestore and messenger to handle it. Signed-off-by: Josh Durgin <[email protected]>
- Loading branch information
Showing
2 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters