lockd: add a /proc/fs/lockd/nlm_end_grace file
authorJeff Layton <jlayton@primarydata.com>
Fri, 12 Sep 2014 20:40:20 +0000 (16:40 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 17 Sep 2014 20:33:13 +0000 (16:33 -0400)
commitd68e3c4aa416d592d79152a49af121e4ecb204e3
tree055e7cf7fb69bc10f0b0238a87c05758ed125d61
parent3b3e7b72239a748f516d6aee8c12df48d50e2d7e
lockd: add a /proc/fs/lockd/nlm_end_grace file

Add a new procfile that will allow a (privileged) userland process to
end the NLM grace period early. The basic idea here will be to have
sm-notify write to this file, if it sent out no NOTIFY requests when
it runs. In that situation, we can generally expect that there will be
no reclaim requests so the grace period can be lifted early.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
fs/lockd/Makefile
fs/lockd/procfs.c [new file with mode: 0644]
fs/lockd/procfs.h [new file with mode: 0644]
fs/lockd/svc.c