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