|
|
ddf19c |
From 485adfa1aa1b3e2d1449edf5c42d6ec396cbfb5d Mon Sep 17 00:00:00 2001
|
|
|
ddf19c |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
ddf19c |
Date: Mon, 27 Jan 2020 19:01:40 +0100
|
|
|
ddf19c |
Subject: [PATCH 069/116] virtiofsd: Handle reinit
|
|
|
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-66-dgilbert@redhat.com>
|
|
|
ddf19c |
Patchwork-id: 93520
|
|
|
ddf19c |
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 065/112] virtiofsd: Handle reinit
|
|
|
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: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
Allow init->destroy->init for mount->umount->mount
|
|
|
ddf19c |
|
|
|
ddf19c |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.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 c806d6435fe95fd54b379920aca2f4e3ea1f3258)
|
|
|
ddf19c |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ddf19c |
---
|
|
|
ddf19c |
tools/virtiofsd/fuse_lowlevel.c | 2 ++
|
|
|
ddf19c |
1 file changed, 2 insertions(+)
|
|
|
ddf19c |
|
|
|
ddf19c |
diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c
|
|
|
ddf19c |
index a7a1968..7d742b5 100644
|
|
|
ddf19c |
--- a/tools/virtiofsd/fuse_lowlevel.c
|
|
|
ddf19c |
+++ b/tools/virtiofsd/fuse_lowlevel.c
|
|
|
ddf19c |
@@ -2028,6 +2028,7 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid,
|
|
|
ddf19c |
}
|
|
|
ddf19c |
|
|
|
ddf19c |
se->got_init = 1;
|
|
|
ddf19c |
+ se->got_destroy = 0;
|
|
|
ddf19c |
if (se->op.init) {
|
|
|
ddf19c |
se->op.init(se->userdata, &se->conn);
|
|
|
ddf19c |
}
|
|
|
ddf19c |
@@ -2130,6 +2131,7 @@ static void do_destroy(fuse_req_t req, fuse_ino_t nodeid,
|
|
|
ddf19c |
(void)iter;
|
|
|
ddf19c |
|
|
|
ddf19c |
se->got_destroy = 1;
|
|
|
ddf19c |
+ se->got_init = 0;
|
|
|
ddf19c |
if (se->op.destroy) {
|
|
|
ddf19c |
se->op.destroy(se->userdata);
|
|
|
ddf19c |
}
|
|
|
ddf19c |
--
|
|
|
ddf19c |
1.8.3.1
|
|
|
ddf19c |
|