summaryrefslogtreecommitdiff
path: root/libnetfs/io-revoke.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-22 09:48:11 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-22 09:48:11 +0000
commit384a15cfd8612abe4fb9331dd130cce22130200b (patch)
treedc67a585baa7dca31cf0667c5d1d1c0cb177af3f /libnetfs/io-revoke.c
parent6a45922e3e3533dc834c1f48cb12f67e0c506975 (diff)
Mon Feb 22 04:30:18 1999 Thomas Bushnell, BSG <tb@mit.edu>
* io-revoke.c (netfs_S_io_revoke): Protect the revocation by blocking other rpcs.
Diffstat (limited to 'libnetfs/io-revoke.c')
-rw-r--r--libnetfs/io-revoke.c2
1 files changed, 2 insertions, 0 deletions
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;
}