Skip to content

Commit

Permalink
nfsd: release the legacy reclaimable clients list in grace_done
Browse files Browse the repository at this point in the history
The current code holds on to this list until nfsd is shut down, but it's
never touched once the grace period ends. Release that memory back into
the wild when the grace period ends.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Nov 12, 2012
1 parent 2216d44 commit 7e4f015
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfsd/nfs4recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ nfsd4_recdir_purge_old(struct net *net, time_t boot_time)
vfs_fsync(rec_file, 0);
mnt_drop_write_file(rec_file);
out:
nfs4_release_reclaim();
if (status)
printk("nfsd4: failed to purge old clients from recovery"
" directory %s\n", rec_file->f_path.dentry->d_name.name);
Expand Down

0 comments on commit 7e4f015

Please sign in to comment.