From 9fe5760270124aba9f7600117205484e835e36ee Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 23 Jun 1995 19:43:52 +0000 Subject: (diskfs_S_file_syncfs): Unlock NP around fsys call. --- libdiskfs/file-syncfs.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3