diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-11-21 18:02:07 +0000 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-01-23 16:41:37 +0000 |
commit | c806d6435fe95fd54b379920aca2f4e3ea1f3258 (patch) | |
tree | 102a22d44355ae282071b9efef7bf464f43d250e | |
parent | 50fb955aa0e6ede929422146936cf68bf1ca876f (diff) |
virtiofsd: Handle reinit
Allow init->destroy->init for mount->umount->mount
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r-- | tools/virtiofsd/fuse_lowlevel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c index a7a19685b5..7d742b5a72 100644 --- a/tools/virtiofsd/fuse_lowlevel.c +++ b/tools/virtiofsd/fuse_lowlevel.c @@ -2028,6 +2028,7 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, } se->got_init = 1; + se->got_destroy = 0; if (se->op.init) { se->op.init(se->userdata, &se->conn); } @@ -2130,6 +2131,7 @@ static void do_destroy(fuse_req_t req, fuse_ino_t nodeid, (void)iter; se->got_destroy = 1; + se->got_init = 0; if (se->op.destroy) { se->op.destroy(se->userdata); } |