From e108eee92cc057ecd4d7d46255635862a74213ba Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 8 Apr 2019 22:12:04 +0200 Subject: [PATCH] fuse-overlayfs: write uses SPLICE_MOVE|SPLICE_NONBLOCK don't block on writing to the pipe. It has a significant impact on the performance. Signed-off-by: Giuseppe Scrivano --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index d22c617..e021061 100644 --- a/main.c +++ b/main.c @@ -2603,7 +2603,7 @@ ovl_write_buf (fuse_req_t req, fuse_ino_t ino, ino, out_buf.buf[0].size, (unsigned long) off, (int) fi->fh); errno = 0; - res = fuse_buf_copy (&out_buf, in_buf, 0); + res = fuse_buf_copy (&out_buf, in_buf, FUSE_BUF_SPLICE_MOVE | FUSE_BUF_SPLICE_NONBLOCK); if (res < 0) fuse_reply_err (req, errno); else