diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-23 19:45:22 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-23 19:45:22 +0000 |
commit | bca2e6614c2c7f53f8c19b1e16841255dffefccf (patch) | |
tree | 467d94eb0219276f76196784320f28ce628f1935 /libdiskfs | |
parent | b35e0dd4986e6b51ccad0281a825a6096f38bfa1 (diff) |
(diskfs_S_fsys_syncfs) [helper]: Unlock NP around fsys call.
Diffstat (limited to 'libdiskfs')
-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; } |