From: Tom Tucker Subject: Re: [RFC, PATCH 06/20] svc: export svc_sock_enqueue, svc_sock_received Date: Tue, 10 Jul 2007 19:45:03 -0500 Message-ID: <1184114703.30033.89.camel@trinity.ogc.int> References: <20070710052711.28979.70843.stgit@dell3.ogc.int> <20070710053432.28979.89368.stgit@dell3.ogc.int> <1184108889.6480.35.camel@heimdal.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: Trond Myklebust Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1I8QLe-0008TJ-PM for nfs@lists.sourceforge.net; Tue, 10 Jul 2007 17:46:30 -0700 Received: from rrcs-71-42-183-126.sw.biz.rr.com ([71.42.183.126] helo=smtp.opengridcomputing.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1I8QLi-00054D-3z for nfs@lists.sourceforge.net; Tue, 10 Jul 2007 17:46:34 -0700 In-Reply-To: <1184108889.6480.35.camel@heimdal.trondhjem.org> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net See below.... On Tue, 2007-07-10 at 19:08 -0400, Trond Myklebust wrote: > On Tue, 2007-07-10 at 00:34 -0500, Tom Tucker wrote: > > Export svc_sock_enqueue() and svc_sock_received() so they > > can be used by sunrpc server transport implementations > > (even future modular ones). > > > > Signed-off-by: Greg Banks > > Signed-off-by: Peter Leckie > > Signed-off-by: Tom Tucker > > --- > > > > include/linux/sunrpc/svcsock.h | 2 ++ > > net/sunrpc/svcsock.c | 7 ++++--- > > 2 files changed, 6 insertions(+), 3 deletions(-) > > > > diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h > > index ce93b10..9fa4321 100644 > > --- a/include/linux/sunrpc/svcsock.h > > +++ b/include/linux/sunrpc/svcsock.h > > @@ -108,6 +108,8 @@ int svc_addsock(struct svc_serv *serv, > > int fd, > > char *name_return, > > int *proto); > > +void svc_sock_enqueue(struct svc_sock *svsk); > > +void svc_sock_received(struct svc_sock *svsk); > > > > /* > > * svc_makesock socket characteristics > > diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c > > index 1a6a933..f09c4b4 100644 > > --- a/net/sunrpc/svcsock.c > > +++ b/net/sunrpc/svcsock.c > > @@ -209,7 +209,7 @@ svc_release_skb(struct svc_rqst *rqstp) > > * processes, wake 'em up. > > * > > */ > > -static void > > +void > > svc_sock_enqueue(struct svc_sock *svsk) > > { > > struct svc_serv *serv = svsk->sk_server; > > @@ -287,6 +287,7 @@ svc_sock_enqueue(struct svc_sock *svsk) > > out_unlock: > > spin_unlock_bh(&pool->sp_lock); > > } > > +EXPORT_SYMBOL(svc_sock_enqueue); > > EXPORT_SYMBOL_GPL(), please. This is definitely not something we want to > encourage out-of-tree modules to use. Ok, done. Note that svc_sock_names is currently EXPORT_SYMBOL. > > > > > /* > > * Dequeue the first socket. Must be called with the pool->sp_lock held. > > @@ -315,14 +316,14 @@ svc_sock_dequeue(struct svc_pool *pool) > > * Note: SK_DATA only gets cleared when a read-attempt finds > > * no (or insufficient) data. > > */ > > -static inline void > > +void > > svc_sock_received(struct svc_sock *svsk) > > { > > svsk->sk_pool = NULL; > > clear_bit(SK_BUSY, &svsk->sk_flags); > > svc_sock_enqueue(svsk); > > } > > - > > +EXPORT_SYMBOL(svc_sock_received); > > ditto... Done. > > > > /** > > * svc_reserve - change the space reserved for the reply to a request. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > NFS maillist - NFS@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nfs > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs