From: tomponline Date: Tue, 22 Jan 2019 12:38:25 +0000 (+0000) Subject: Revert "bindings: protect do_release_file_info() with mutex" X-Git-Tag: lxcfs-3.1.0~10^2 X-Git-Url: https://git.proxmox.com/?p=mirror_lxcfs.git;a=commitdiff_plain;h=6baa64c30d12a69579d44b2c3401c217b506a9ef;hp=b052e54da2d5d99429fcc634d7788da0b67c01b3 Revert "bindings: protect do_release_file_info() with mutex" This reverts commit 0108dc1cc6eab76392d228ee4ca844729096473d. I am still experiencing hangs in lxcfs even with this patch. Signed-off-by: tomponline --- diff --git a/bindings.c b/bindings.c index 29855d5..097ca81 100644 --- a/bindings.c +++ b/bindings.c @@ -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)