summaryrefslogtreecommitdiff
path: root/libdiskfs/io-revoke.c
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 /libdiskfs/io-revoke.c
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.
Diffstat (limited to 'libdiskfs/io-revoke.c')
-rw-r--r--libdiskfs/io-revoke.c10
1 files changed, 4 insertions, 6 deletions
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;
}