Commit 77c1283c authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] Always flush rpc caches after an update

..as the update might have set an expiry date in the past
and we want it to be removed instantly.
parent 1329f418
...@@ -184,7 +184,7 @@ int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) ...@@ -184,7 +184,7 @@ int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)
out_nd: out_nd:
path_release(&nd); path_release(&nd);
} }
cache_flush();
out: out:
if (dom) if (dom)
auth_domain_put(dom); auth_domain_put(dom);
...@@ -396,7 +396,7 @@ int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen) ...@@ -396,7 +396,7 @@ int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen)
if (expp) if (expp)
exp_put(expp); exp_put(expp);
err = 0; err = 0;
cache_flush();
out: out:
if (nd.dentry) if (nd.dentry)
path_release(&nd); path_release(&nd);
......
...@@ -209,7 +209,7 @@ static int ip_map_parse(struct cache_detail *cd, ...@@ -209,7 +209,7 @@ static int ip_map_parse(struct cache_detail *cd,
auth_domain_put(dom); auth_domain_put(dom);
if (!ipmp) if (!ipmp)
return -ENOMEM; return -ENOMEM;
cache_flush();
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment