]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: lockd: optionally use hostnames for identifying peers
authorOlaf Kirch <okir@suse.de>
Wed, 4 Oct 2006 09:16:01 +0000 (02:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:17 +0000 (07:55 -0700)
commit4fba578fd13e387e4321e6c73bbe7e74f0411671
treedd738067aa90af1cb4613a7c711ee426ff5f8ae9
parent099052648e68ad8267e2668dd5b8fe5075382775
[PATCH] knfsd: lockd: optionally use hostnames for identifying peers

This patch adds the nsm_use_hostnames sysctl and module param.  If set, lockd
will use the client's name (as given in the NLM arguments) to find the NSM
handle.  This makes recovery work when the NFS peer is multi-homed, and the
reboot notification arrives from a different IP than the original lock calls.

Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/lockd/host.c
fs/lockd/mon.c
fs/lockd/svc.c
include/linux/lockd/lockd.h
include/linux/lockd/sm_inter.h