1 Dec 2007 01:00
Re: [RFC,PATCH 36/38] svc: Add svc API that queries for a transport instance
On Nov 29, 2007, at 5:41 PM, Tom Tucker wrote: > 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. Suggestion: this paragraph ^^^ would be good documentation to add to the block comment in front of svc_find_xprt(). > Signed-off-by: Tom Tucker <tom@...> > --- > > fs/lockd/svc.c | 16 ++-------------- > include/linux/sunrpc/svc_xprt.h | 2 ++ > net/sunrpc/svc_xprt.c | 31 ++++++++++++++++++++++++++++ > +++ > 3 files changed, 35 insertions(+), 14 deletions(-) > > diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c > index a8e79a9..470af01 100644 > --- a/fs/lockd/svc.c > +++ b/fs/lockd/svc.c > <at> <at> -219,18 +219,6 <at> <at> lockd(struct svc_rqst *rqstp) > module_put_and_exit(0); > }(Continue reading)

RSS Feed