[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)
commitabd1f50094cad9dff6d68ada98b495549f52fc30
treedd738067aa90af1cb4613a7c711ee426ff5f8ae9
parent350fce8dbf43f7d441b77366851c9ce3cd28d6dc
[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