diff options
author | Olaf Kirch <okir@suse.de> | 2006-10-04 05:16:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 10:55:17 -0400 |
commit | abd1f50094cad9dff6d68ada98b495549f52fc30 (patch) | |
tree | dd738067aa90af1cb4613a7c711ee426ff5f8ae9 /include/linux/lockd | |
parent | 350fce8dbf43f7d441b77366851c9ce3cd28d6dc (diff) |
[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>
Diffstat (limited to 'include/linux/lockd')
-rw-r--r-- | include/linux/lockd/lockd.h | 1 | ||||
-rw-r--r-- | include/linux/lockd/sm_inter.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 1fcf936d75b9..7be7aeaeee58 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -142,6 +142,7 @@ extern struct svc_procedure nlmsvc_procedures4[]; | |||
142 | #endif | 142 | #endif |
143 | extern int nlmsvc_grace_period; | 143 | extern int nlmsvc_grace_period; |
144 | extern unsigned long nlmsvc_timeout; | 144 | extern unsigned long nlmsvc_timeout; |
145 | extern int nsm_use_hostnames; | ||
145 | 146 | ||
146 | /* | 147 | /* |
147 | * Lockd client functions | 148 | * Lockd client functions |
diff --git a/include/linux/lockd/sm_inter.h b/include/linux/lockd/sm_inter.h index d93b074668ce..daef509bb9b3 100644 --- a/include/linux/lockd/sm_inter.h +++ b/include/linux/lockd/sm_inter.h | |||
@@ -28,6 +28,8 @@ struct nsm_args { | |||
28 | u32 prog; /* RPC callback info */ | 28 | u32 prog; /* RPC callback info */ |
29 | u32 vers; | 29 | u32 vers; |
30 | u32 proc; | 30 | u32 proc; |
31 | |||
32 | char * mon_name; | ||
31 | }; | 33 | }; |
32 | 34 | ||
33 | /* | 35 | /* |