cryptospore / rpms / qemu-kvm

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