From: Tom Tucker Subject: [RFC, PATCH 06/20] svc: export svc_sock_enqueue, svc_sock_received Date: Mon, 20 Aug 2007 11:23:34 -0500 Message-ID: <20070820162334.15224.17433.stgit@dell3.ogc.int> References: <20070820162000.15224.65524.stgit@dell3.ogc.int> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: nfs@lists.sourceforge.net 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 1INA2S-0006Nh-H0 for nfs@lists.sourceforge.net; Mon, 20 Aug 2007 09:23:38 -0700 Received: from smtp.opengridcomputing.com ([71.42.183.126]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1INA2W-0003we-4C for nfs@lists.sourceforge.net; Mon, 20 Aug 2007 09:23:40 -0700 Received: from dell3.ogc.int (localhost [127.0.0.1]) by smtp.opengridcomputing.com (Postfix) with ESMTP id 49C8B7C79B for ; Mon, 20 Aug 2007 11:23:34 -0500 (CDT) In-Reply-To: <20070820162000.15224.65524.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 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 4e24e6d..0145057 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 0dc94a8..8fad53d 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_GPL(svc_sock_enqueue); /* * 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_GPL(svc_sock_received); /** * svc_reserve - change the space reserved for the reply to a request. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs