cryptospore / rpms / qemu-kvm

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