summaryrefslogtreecommitdiff
path: root/libnetfs/io-revoke.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-21 02:35:47 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-21 02:35:47 +0000
commitbc21b97fdc2592be476e3a2372713833f00594d2 (patch)
tree615656a1621efe5798e9c9b165042f2cd9659256 /libnetfs/io-revoke.c
parent30d93c850172408171391f818dc13bc7c6d6a9a4 (diff)
Sat Feb 20 20:54:26 1999 Thomas Bushnell, BSG <tb@mit.edu>
* io-revoke.c (netfs_S_io_revoke): Release lock before iteration.
Diffstat (limited to 'libnetfs/io-revoke.c')
-rw-r--r--libnetfs/io-revoke.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libnetfs/io-revoke.c b/libnetfs/io-revoke.c
index 640a6a6e..b32a776c 100644
--- a/libnetfs/io-revoke.c
+++ b/libnetfs/io-revoke.c
@@ -48,15 +48,13 @@ netfs_S_io_revoke (struct protid *cred)
err = netfs_validate_stat (np, cred->user);
if (!err)
err = fshelp_isowner (&np->nn_stat, cred->user);
+
+ mutex_unlock (&np->lock);
+
if (err)
- {
- mutex_unlock (&np->lock);
- return err;
- }
+ return err;
ports_bucket_iterate (netfs_port_bucket, iterator_function);
- mutex_unlock (&np->lock);
-
return 0;
}