From 3d35e5ed350c892770ff1430693bd9910b622760 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 23 Jun 1995 19:46:03 +0000 Subject: (diskfs_shutdown) [helper]: Unlock NP around fsys call. --- libdiskfs/shutdown.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libdiskfs') diff --git a/libdiskfs/shutdown.c b/libdiskfs/shutdown.c index c7c6ba22..4264ef9e 100644 --- a/libdiskfs/shutdown.c +++ b/libdiskfs/shutdown.c @@ -38,6 +38,7 @@ diskfs_shutdown (int flags) mach_port_t control; error = fshelp_fetch_control (&np->transbox, &control); + mutex_unlock (&np->lock); if (!error && (control != MACH_PORT_NULL)) { error = fsys_goaway (control, flags); @@ -45,6 +46,7 @@ diskfs_shutdown (int flags) } else error = 0; + mutex_lock (&np->lock); return error; } -- cgit v1.2.3