From 384a15cfd8612abe4fb9331dd130cce22130200b Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 22 Feb 1999 09:48:11 +0000 Subject: Mon Feb 22 04:30:18 1999 Thomas Bushnell, BSG * io-revoke.c (netfs_S_io_revoke): Protect the revocation by blocking other rpcs. --- libnetfs/ChangeLog | 5 +++++ libnetfs/io-revoke.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/libnetfs/ChangeLog b/libnetfs/ChangeLog index 9b8011ce..cf54bda3 100644 --- a/libnetfs/ChangeLog +++ b/libnetfs/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 22 04:30:18 1999 Thomas Bushnell, BSG + + * io-revoke.c (netfs_S_io_revoke): Protect the revocation by + blocking other rpcs. + Sat Feb 20 20:54:26 1999 Thomas Bushnell, BSG * io-revoke.c (netfs_S_io_revoke): Release lock before iteration. diff --git a/libnetfs/io-revoke.c b/libnetfs/io-revoke.c index b32a776c..d96b4d8e 100644 --- a/libnetfs/io-revoke.c +++ b/libnetfs/io-revoke.c @@ -54,7 +54,9 @@ netfs_S_io_revoke (struct protid *cred) if (err) return err; + ports_inhibit_bucket_rpcs (netfs_port_bucket); ports_bucket_iterate (netfs_port_bucket, iterator_function); + ports_resume_bucket_rpcs (netfs_port_bucket); return 0; } -- cgit v1.2.3