yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
ddf19c
From bc127914b29f2e4163bc7ca786e04ed955d96016 Mon Sep 17 00:00:00 2001
ddf19c
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ddf19c
Date: Mon, 27 Jan 2020 19:02:00 +0100
ddf19c
Subject: [PATCH 089/116] virtiofsd: enable PARALLEL_DIROPS during INIT
ddf19c
MIME-Version: 1.0
ddf19c
Content-Type: text/plain; charset=UTF-8
ddf19c
Content-Transfer-Encoding: 8bit
ddf19c
ddf19c
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
Message-id: <20200127190227.40942-86-dgilbert@redhat.com>
ddf19c
Patchwork-id: 93539
ddf19c
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 085/112] virtiofsd: enable PARALLEL_DIROPS during INIT
ddf19c
Bugzilla: 1694164
ddf19c
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
ddf19c
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
ddf19c
ddf19c
From: Liu Bo <bo.liu@linux.alibaba.com>
ddf19c
ddf19c
lookup is a RO operations, PARALLEL_DIROPS can be enabled.
ddf19c
ddf19c
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
ddf19c
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ddf19c
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
(cherry picked from commit b7ed733a3841c4d489d3bd6ca7ed23c84db119c2)
ddf19c
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ddf19c
---
ddf19c
 tools/virtiofsd/fuse_lowlevel.c | 3 +++
ddf19c
 1 file changed, 3 insertions(+)
ddf19c
ddf19c
diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c
ddf19c
index aac282f..70568d2 100644
ddf19c
--- a/tools/virtiofsd/fuse_lowlevel.c
ddf19c
+++ b/tools/virtiofsd/fuse_lowlevel.c
ddf19c
@@ -2062,6 +2062,9 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid,
ddf19c
     if (se->conn.want & FUSE_CAP_ASYNC_READ) {
ddf19c
         outarg.flags |= FUSE_ASYNC_READ;
ddf19c
     }
ddf19c
+    if (se->conn.want & FUSE_CAP_PARALLEL_DIROPS) {
ddf19c
+        outarg.flags |= FUSE_PARALLEL_DIROPS;
ddf19c
+    }
ddf19c
     if (se->conn.want & FUSE_CAP_POSIX_LOCKS) {
ddf19c
         outarg.flags |= FUSE_POSIX_LOCKS;
ddf19c
     }
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c