yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-virtiofsd-passthrough_ll-Use-cache_readdir-for-direc.patch

902636
From 83b03fc4a3ecf6086394363488bbebc8d55428c0 Mon Sep 17 00:00:00 2001
902636
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
902636
Date: Mon, 27 Jan 2020 19:02:16 +0100
902636
Subject: [PATCH 105/116] virtiofsd: passthrough_ll: Use cache_readdir for
902636
 directory open
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-102-dgilbert@redhat.com>
902636
Patchwork-id: 93555
902636
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 101/112] virtiofsd: passthrough_ll: Use cache_readdir for directory open
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: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
902636
902636
Since keep_cache(FOPEN_KEEP_CACHE) has no effect for directory as
902636
described in fuse_common.h, use cache_readdir(FOPNE_CACHE_DIR) for
902636
diretory open when cache=always mode.
902636
902636
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
902636
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
902636
(cherry picked from commit 9b610b09b49b1aada256097b338d49da805da6ae)
902636
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
902636
---
902636
 tools/virtiofsd/passthrough_ll.c | 2 +-
902636
 1 file changed, 1 insertion(+), 1 deletion(-)
902636
902636
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
902636
index 4c61ac5..79b8b71 100644
902636
--- a/tools/virtiofsd/passthrough_ll.c
902636
+++ b/tools/virtiofsd/passthrough_ll.c
902636
@@ -1523,7 +1523,7 @@ static void lo_opendir(fuse_req_t req, fuse_ino_t ino,
902636
 
902636
     fi->fh = fh;
902636
     if (lo->cache == CACHE_ALWAYS) {
902636
-        fi->keep_cache = 1;
902636
+        fi->cache_readdir = 1;
902636
     }
902636
     fuse_reply_open(req, fi);
902636
     return;
902636
-- 
902636
1.8.3.1
902636