diff options
author | Roland McGrath <roland@gnu.org> | 1996-01-31 02:20:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-01-31 02:20:05 +0000 |
commit | 46c03b06ce67a7b254db683e45f70e6f7b15e301 (patch) | |
tree | ca84a055662519facb133502e32c9fc2526a0814 /libdiskfs/fsys-options.c | |
parent | 4e1533adc2a37bcd35f54a8ac505a2b4dc1a13db (diff) |
(diskfs_S_fsys_set_options): Use rwlock_writer_lock instead of
rwlock_reader_lock in DO_CHILDREN case.
Diffstat (limited to 'libdiskfs/fsys-options.c')
-rw-r--r-- | libdiskfs/fsys-options.c | 10 |
1 files 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; |