]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: lockd: introduce nsm_handle
authorOlaf Kirch <okir@suse.de>
Wed, 4 Oct 2006 09:15:53 +0000 (02:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:16 +0000 (07:55 -0700)
commit145c4d72f2f23d4277569786becf597b8125b53c
tree05ad7dd248263cbeecc4f3d0b4cbb3ec06c65626
parent8ea6f46c8136bef5bc08d9e301223298cc4e1d37
[PATCH] knfsd: lockd: introduce nsm_handle

This patch introduces the nsm_handle, which is shared by all nlm_host objects
referring to the same client.

With this patch applied, all nlm_hosts from the same address will share the
same nsm_handle.  A future patch will add sharing by name.

Note: this patch changes h_name so that it is no longer guaranteed to be an IP
address of the host.  When the host represents an NFS server, h_name will be
the name passed in the mount call.  When the host represents a client, h_name
will be the name presented in the lock request received from the client.  A
h_name is only used for printing informational messages, this change should
not be significant.

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/clntlock.c
fs/lockd/host.c
fs/lockd/mon.c
include/linux/lockd/lockd.h