Skip to contentSkip to conversation

kNFSd - 2 of 8 - Always flush rpc caches after an update

PATCH New NeilBrown 1 participant 1 message Jun 24, 2003

Subsystems (3)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 kNFSd - 2 of 8 - Always flush rpc caches after an update

### Comments for ChangeSet

..as the update might have set an expiry date in the past and we want it to be removed instantly.

----------- Diffstat output ------------

 ./fs/nfsd/export.c          |    4 ++--
 ./net/sunrpc/svcauth_unix.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
fs/nfsd/export.c renamed from fs/nfsd/export.c~current~ +2 -2
diff ./fs/nfsd/export.c~current~ ./fs/nfsd/export.c
@@ -184,7 +184,7 @@ int expkey_parse(struct cache_detail *cd
 	out_nd:
 		path_release(&nd);
 	}
-
+	cache_flush();
  out:
 	if (dom)
 		auth_domain_put(dom);
@@ -396,7 +396,7 @@ int svc_export_parse(struct cache_detail
 	if (expp)
 		exp_put(expp);
 	err = 0;
-
+	cache_flush();
  out:
 	if (nd.dentry)
 		path_release(&nd);
net/sunrpc/svcauth_unix.c renamed from net/sunrpc/svcauth_unix.c~current~ +1 -1
diff ./net/sunrpc/svcauth_unix.c~current~ ./net/sunrpc/svcauth_unix.c
@@ -209,7 +209,7 @@ static int ip_map_parse(struct cache_det
 		auth_domain_put(dom);
 	if (!ipmp)
 		return -ENOMEM;
-
+	cache_flush();
 	return 0;
 }
 

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs