From: Trond Myklebust Subject: Re: [RFC, PATCH 06/20] svc: export svc_sock_enqueue, svc_sock_received Date: Tue, 10 Jul 2007 19:08:09 -0400 Message-ID: <1184108889.6480.35.camel@heimdal.trondhjem.org> References: <20070710052711.28979.70843.stgit@dell3.ogc.int> <20070710053432.28979.89368.stgit@dell3.ogc.int> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: Tom Tucker 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 1I8Ood-0007SA-Vj for nfs@lists.sourceforge.net; Tue, 10 Jul 2007 16:08:20 -0700 Received: from pat.uio.no ([129.240.10.15] ident=[U2FsdGVkX19ynqmXLxdD1wKw0wp4uksjwYwSAhAR8Es=]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1I8Ooe-0000Yj-Ib for nfs@lists.sourceforge.net; Tue, 10 Jul 2007 16:08:22 -0700 In-Reply-To: <20070710053432.28979.89368.stgit@dell3.ogc.int> 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 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. > > /* > * 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... > > /** > * 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