diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-23 19:46:03 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-23 19:46:03 +0000 |
commit | 3d35e5ed350c892770ff1430693bd9910b622760 (patch) | |
tree | 9b93f3d10d02680b8c53d489cd49918204dc86a4 /libdiskfs | |
parent | bca2e6614c2c7f53f8c19b1e16841255dffefccf (diff) |
(diskfs_shutdown) [helper]: Unlock NP around fsys call.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/shutdown.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |