summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-21 02:35:34 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-21 02:35:34 +0000
commit30d93c850172408171391f818dc13bc7c6d6a9a4 (patch)
treeb1fe0ae28775684a9bef58c25053eb6ed62aae70
parent4228e9dd6c648c6643e90e4ca7cf3a90abccf3d3 (diff)
Sat Feb 20 20:46:21 1999 Thomas Bushnell, BSG <tb@mit.edu>
* io-revoke.c (diskfs_S_io_revoke): Release NP->lock before beginning iteration.
-rw-r--r--libdiskfs/ChangeLog5
-rw-r--r--libdiskfs/io-revoke.c10
2 files changed, 9 insertions, 6 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog
index 060eb45d..f59c2e55 100644
--- a/libdiskfs/ChangeLog
+++ b/libdiskfs/ChangeLog
@@ -1,3 +1,8 @@
+Sat Feb 20 20:46:21 1999 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * io-revoke.c (diskfs_S_io_revoke): Release NP->lock before
+ beginning iteration.
+
1999-02-16 Roland McGrath <roland@baalperazim.frob.com>
* io-revoke.c (diskfs_S_io_revoke): Fix typo in 1999-02-16 change.
diff --git a/libdiskfs/io-revoke.c b/libdiskfs/io-revoke.c
index fb97c46e..a21f0ffa 100644
--- a/libdiskfs/io-revoke.c
+++ b/libdiskfs/io-revoke.c
@@ -46,15 +46,13 @@ diskfs_S_io_revoke (struct protid *cred)
mutex_lock (&np->lock);
err = fshelp_isowner (&np->dn_stat, cred->user);
+
+ mutex_unlock (&np->lock);
+
if (err)
- {
- mutex_unlock (&np->lock);
- return err;
- }
+ return err;
ports_bucket_iterate (diskfs_port_bucket, iterator_function);
- mutex_unlock (&np->lock);
-
return 0;
}