From 30d93c850172408171391f818dc13bc7c6d6a9a4 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 21 Feb 1999 02:35:34 +0000 Subject: Sat Feb 20 20:46:21 1999 Thomas Bushnell, BSG * io-revoke.c (diskfs_S_io_revoke): Release NP->lock before beginning iteration. --- libdiskfs/ChangeLog | 5 +++++ libdiskfs/io-revoke.c | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'libdiskfs') 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 + + * io-revoke.c (diskfs_S_io_revoke): Release NP->lock before + beginning iteration. + 1999-02-16 Roland McGrath * 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; } -- cgit v1.2.3