From 46c03b06ce67a7b254db683e45f70e6f7b15e301 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 31 Jan 1996 02:20:05 +0000 Subject: (diskfs_S_fsys_set_options): Use rwlock_writer_lock instead of rwlock_reader_lock in DO_CHILDREN case. --- libdiskfs/fsys-options.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libdiskfs/fsys-options.c b/libdiskfs/fsys-options.c index a8781ee7..ce80d76d 100644 --- a/libdiskfs/fsys-options.c +++ b/libdiskfs/fsys-options.c @@ -1,6 +1,6 @@ /* Parse run-time options - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -43,7 +43,7 @@ diskfs_S_fsys_set_options (fsys_t fsys, { error_t error; mach_port_t control; - + error = fshelp_fetch_control (&np->transbox, &control); mutex_unlock (&np->lock); if (!error && (control != MACH_PORT_NULL)) @@ -59,13 +59,13 @@ diskfs_S_fsys_set_options (fsys_t fsys, error = 0; return error; } - + if (!pt) return EOPNOTSUPP; if (do_children) { - rwlock_reader_lock (&diskfs_fsys_lock); + rwlock_writer_lock (&diskfs_fsys_lock); err = diskfs_node_iterate (helper); rwlock_writer_unlock (&diskfs_fsys_lock); } @@ -95,7 +95,7 @@ diskfs_S_fsys_get_options (fsys_t fsys, error_t err; struct port_info *port = ports_lookup_port (diskfs_port_bucket, fsys, diskfs_control_class); - + if (!port) return EOPNOTSUPP; -- cgit v1.2.3