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)
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 *cd, char *mesg, int mlen)
if (expp)
exp_put(expp);
err = 0;
cache_flush();
out:
if (nd.dentry)
path_release(&nd);
......
......@@ -209,7 +209,7 @@ static int ip_map_parse(struct cache_detail *cd,
auth_domain_put(dom);
if (!ipmp)
return -ENOMEM;
cache_flush();
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