nfsd: clean up grace period on early exit
authorJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 20 Nov 2008 20:36:17 +0000 (14:36 -0600)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 24 Nov 2008 16:12:48 +0000 (10:12 -0600)
commit2c5e76158fcea6e3b9536a74efa7b5e2e846d374
treedca1fcd75e3091b9ffe14b5461714fed1542dbba
parentb726e923ea4d216027e466aa602d914e4b4a63af
nfsd: clean up grace period on early exit

If nfsd was shut down before the grace period ended, we could end up
with a freed object still on grace_list.  Thanks to Jeff Moyer for
reporting the resulting list corruption warnings.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Tested-by: Jeff Moyer <jmoyer@redhat.com>
fs/lockd/svc.c
fs/nfsd/nfs4state.c