]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
Revert "bindings: protect do_release_file_info() with mutex"
authortomponline <tomp@tomp.uk>
Tue, 22 Jan 2019 12:38:25 +0000 (12:38 +0000)
committertomponline <tomp@tomp.uk>
Tue, 22 Jan 2019 12:48:42 +0000 (12:48 +0000)
This reverts commit 0108dc1cc6eab76392d228ee4ca844729096473d.

I am still experiencing hangs in lxcfs even with this patch.

Signed-off-by: tomponline <tomp@tomp.uk>
bindings.c

index 29855d518cf25ea1c4e0811d1c3754f0667aa29e..097ca81573539f03987568bd5f8c1bcc853c0004 100644 (file)
@@ -2169,16 +2169,11 @@ out:
        return ret;
 }
 
-static pthread_mutex_t do_release_file_info_lock = PTHREAD_MUTEX_INITIALIZER;
-
 static void do_release_file_info(struct fuse_file_info *fi)
 {
-       lock_mutex(&do_release_file_info_lock);
-
        struct file_info *f = (struct file_info *)fi->fh;
 
        if (!f)
-               unlock_mutex(&do_release_file_info_lock);
                return;
 
        fi->fh = 0;
@@ -2193,8 +2188,6 @@ static void do_release_file_info(struct fuse_file_info *fi)
        f->buf = NULL;
        free(f);
        f = NULL;
-
-       unlock_mutex(&do_release_file_info_lock);
 }
 
 int cg_releasedir(const char *path, struct fuse_file_info *fi)