diff options
-rw-r--r-- | libdiskfs/ChangeLog | 5 | ||||
-rw-r--r-- | libdiskfs/io-revoke.c | 10 |
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; } |