svc: Add svc API that queries for a transport instance
authorTom Tucker <tom@opengridcomputing.com>
Mon, 31 Dec 2007 03:08:33 +0000 (21:08 -0600)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 1 Feb 2008 21:42:13 +0000 (16:42 -0500)
commit7fcb98d58cb4d18af6386f71025fc5192f25fbca
tree7ccd884928c644cebd717306937565fbcdc9dd88
parentdc9a16e49dbba3dd042e6aec5d9a7929e099a89b
svc: Add svc API that queries for a transport instance

Add a new svc function that allows a service to query whether a
transport instance has already been created. This is used in lockd
to determine whether or not a transport needs to be created when
a lockd instance is brought up.

Specifying 0 for the address family or port is effectively a wild-card,
and will result in matching the first transport in the service's list
that has a matching class name.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Acked-by: Neil Brown <neilb@suse.de>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Greg Banks <gnb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/svc.c
include/linux/sunrpc/svc_xprt.h
net/sunrpc/svc_xprt.c