diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-23 19:43:52 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-23 19:43:52 +0000 |
commit | 9fe5760270124aba9f7600117205484e835e36ee (patch) | |
tree | 989bbbfcb3c583866aee695ba2c9e5252139edc3 | |
parent | b216e990a1f3203118d6322cd05f884b19617ac6 (diff) |
(diskfs_S_file_syncfs): Unlock NP around fsys call.
-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; } |