diff options
-rw-r--r-- | libdiskfs/fsys-syncfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/fsys-syncfs.c b/libdiskfs/fsys-syncfs.c index bf70fea8..1f7ddbaa 100644 --- a/libdiskfs/fsys-syncfs.c +++ b/libdiskfs/fsys-syncfs.c @@ -37,11 +37,13 @@ diskfs_S_fsys_syncfs (fsys_t controlport, 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; } |