1 Jul 2008 01:00
[PATCH 15/16] lockd: Adjust nlmsvc_lookup_host() to accomodate non-AF_INET
Fix up nlmsvc_lookup_host() to pass non-AF_INET source addresses to nlm_lookup_host(). Signed-off-by: Chuck Lever <chuck.lever@...> --- fs/lockd/host.c | 51 +++++++++++++++++++++++++++++++++++-------- include/linux/lockd/lockd.h | 5 +++- 2 files changed, 44 insertions(+), 12 deletions(-) diff --git a/fs/lockd/host.c b/fs/lockd/host.c index 3c7916d..73e234a 100644 --- a/fs/lockd/host.c +++ b/fs/lockd/host.c <at> <at> -305,29 +305,60 <at> <at> struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap, return nlm_lookup_host(&ni); } -/* - * Find an NLM client handle in the cache. If there is none, create it. +/** + * nlmsvc_lookup_host - Find an NLM host handle matching a remote client + * <at> rqstp: incoming NLM request + * <at> hostname: name of client host + * <at> hostname_len: length of client hostname + * + * Returns an nlm_host structure that matches the [client address, + * transport protocol, NLM version, client hostname] of the passed-in + * NLM request. If one doesn't already exist in the host cache, a + * new handle is created and returned.(Continue reading)
RSS Feed