Blame 0091-virtiofsd-enable-PARALLEL_DIROPS-during-INIT.patch

1d442b
From: Liu Bo <bo.liu@linux.alibaba.com>
1d442b
Date: Mon, 27 Jan 2020 19:02:00 +0000
1d442b
Subject: [PATCH] virtiofsd: enable PARALLEL_DIROPS during INIT
1d442b
MIME-Version: 1.0
1d442b
Content-Type: text/plain; charset=UTF-8
1d442b
Content-Transfer-Encoding: 8bit
1d442b
1d442b
lookup is a RO operations, PARALLEL_DIROPS can be enabled.
1d442b
1d442b
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
1d442b
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
1d442b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1d442b
(cherry picked from commit b7ed733a3841c4d489d3bd6ca7ed23c84db119c2)
1d442b
---
1d442b
 tools/virtiofsd/fuse_lowlevel.c | 3 +++
1d442b
 1 file changed, 3 insertions(+)
1d442b
1d442b
diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c
1d442b
index aac282f278..70568d22a4 100644
1d442b
--- a/tools/virtiofsd/fuse_lowlevel.c
1d442b
+++ b/tools/virtiofsd/fuse_lowlevel.c
1d442b
@@ -2062,6 +2062,9 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid,
1d442b
     if (se->conn.want & FUSE_CAP_ASYNC_READ) {
1d442b
         outarg.flags |= FUSE_ASYNC_READ;
1d442b
     }
1d442b
+    if (se->conn.want & FUSE_CAP_PARALLEL_DIROPS) {
1d442b
+        outarg.flags |= FUSE_PARALLEL_DIROPS;
1d442b
+    }
1d442b
     if (se->conn.want & FUSE_CAP_POSIX_LOCKS) {
1d442b
         outarg.flags |= FUSE_POSIX_LOCKS;
1d442b
     }