Commit 696c47a2 authored by Neil Brown's avatar Neil Brown Committed by James Bottomley

[PATCH] Fix problem where knfsd wouldn't release filesystem on unexport.

Problem was that the cache was being updated inplace, rather
than swapping in a new entry, so old filesystem pointers
were overwritten without being released.
parent 6edc72f4
......@@ -692,7 +692,7 @@ exp_export(struct nfsctl_export *nxp)
new.ex_anon_gid = nxp->ex_anon_gid;
new.ex_fsid = nxp->ex_dev;
exp = svc_export_lookup(&new, 2);
exp = svc_export_lookup(&new, 1);
if (exp == NULL)
goto finish;
......
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