aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-11-11 09:55:55 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-11-11 09:55:55 +0000
commitfc5309cfd2b84b13279f5c512bd575b0a2322ae8 (patch)
tree8859e5a9160eb4708422f93ba66910146c574c1f /lib/fuse.c
parent10d03ed9c381436d06252ab440bc2e910e7e755b (diff)
downloadlibfuse-fc5309cfd2b84b13279f5c512bd575b0a2322ae8.tar.gz
fixes
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 6de98fa..4446245 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -1442,12 +1442,13 @@ static void fuse_create(fuse_req_t req, fuse_ino_t parent, const char *name,
/* The open syscall was interrupted, so it must be cancelled */
if(f->op.release)
fuse_do_release(f, req, path, fi);
+ pthread_mutex_unlock(&f->lock);
forget_node(f, e.ino, 1);
} else {
struct node *node = get_node(f, e.ino);
node->open_count ++;
+ pthread_mutex_unlock(&f->lock);
}
- pthread_mutex_unlock(&f->lock);
} else
reply_err(req, err);