aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/export.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-04-10 11:08:48 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-04-11 17:55:00 -0400
commit33dcc481eddc3f532732a9582095373fa5354369 (patch)
tree33aaf10432675f5e8ab3b83a6d970d4a83cb21f0 /fs/nfsd/export.c
parentsvcauth: remove unused define (diff)
downloadlinux-dev-33dcc481eddc3f532732a9582095373fa5354369.tar.xz
linux-dev-33dcc481eddc3f532732a9582095373fa5354369.zip
nfsd: don't use locks_in_grace to determine whether to call nfs4_grace_end
It's possible that lockd or another lock manager might still be on the list after we call nfsd4_end_grace. If the laundromat thread runs again at that point, then we could end up calling nfsd4_end_grace more than once. That's not only inefficient, but calling nfsd4_recdir_purge_old more than once could be problematic. Fix this by adding a new global "grace_ended" flag and use that to determine whether we've already called nfsd4_grace_end. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/export.c')
0 files changed, 0 insertions, 0 deletions