diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 2964bdae6392d..d4d3ec58047e8 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -1385,9 +1385,12 @@ static int e_show(struct seq_file *m, void *p) return 0; } - exp_get(exp); + if (!cache_get_rcu(&exp->h)) + return 0; + if (cache_check(cd, &exp->h, NULL)) return 0; + exp_put(exp); return svc_export_show(m, cd, cp); }