diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/file-syncfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/file-syncfs.c b/libdiskfs/file-syncfs.c index c7424708..94895978 100644 --- a/libdiskfs/file-syncfs.c +++ b/libdiskfs/file-syncfs.c @@ -32,11 +32,13 @@ diskfs_S_file_syncfs (struct protid *cred, mach_port_t control; error = fshelp_fetch_control (&np->transbox, &control); + mutex_unlock (&np->lock); if (!error && (control != MACH_PORT_NULL)) { fsys_syncfs (control, wait, 1); mach_port_deallocate (mach_task_self (), control); } + mutex_lock (&np->lock); return 0; } |