Skip to contentSkip to conversation

SUNRPC: remove svc_create_thread()

PATCH In review Jeff Layton 2 participants 2 messages Apr 7, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SUNRPC: remove svc_create_thread()

Now that the nfs4 callback thread uses the kthread API, there are no more users of svc_create_thread(). Remove it.

---
 include/linux/sunrpc/svc.h |    1 -
 net/sunrpc/svc.c           |   10 ----------
 2 files changed, 0 insertions(+), 11 deletions(-)
include/linux/sunrpc/svc.h +0 -1
index 64c9755..4b54c5f 100644
@@ -386,7 +386,6 @@ struct svc_serv *  svc_create(struct svc_program *, unsigned int,
 			      void (*shutdown)(struct svc_serv*));
 struct svc_rqst *svc_prepare_thread(struct svc_serv *serv,
 					struct svc_pool *pool);
-int		   svc_create_thread(svc_thread_fn, struct svc_serv *);
 void		   svc_exit_thread(struct svc_rqst *);
 struct svc_serv *  svc_create_pooled(struct svc_program *, unsigned int,
 			void (*shutdown)(struct svc_serv*),
net/sunrpc/svc.c +0 -10
index 60c9e92..71023c7 100644
@@ -613,16 +613,6 @@ out_thread:
 }
 
 /*
- * Create a thread in the default pool.  Caller must hold BKL.
- */
-int
-svc_create_thread(svc_thread_fn func, struct svc_serv *serv)
-{
-	return __svc_create_thread(func, serv, &serv->sv_pools[0]);
-}
-EXPORT_SYMBOL(svc_create_thread);
-
-/*
  * Choose a pool in which to create a new thread, for svc_set_num_threads
  */
 static inline struct svc_pool *
Signature · 1 line
1.5.3.6
#1 lore raw
Quoted 2 lines · Jeff Layton

Now that the nfs4 callback thread uses the kthread API, there are no more users of svc_create_thread(). Remove it.

Thanks; applied.--b.

Quoted 43 lines
---
 include/linux/sunrpc/svc.h |    1 -
 net/sunrpc/svc.c           |   10 ----------
 2 files changed, 0 insertions(+), 11 deletions(-)
include/linux/sunrpc/svc.h +0 -1
index 64c9755..4b54c5f 100644
@@ -386,7 +386,6 @@ struct svc_serv *  svc_create(struct svc_program *, unsigned int,
 			      void (*shutdown)(struct svc_serv*));
 struct svc_rqst *svc_prepare_thread(struct svc_serv *serv,
 					struct svc_pool *pool);
-int		   svc_create_thread(svc_thread_fn, struct svc_serv *);
 void		   svc_exit_thread(struct svc_rqst *);
 struct svc_serv *  svc_create_pooled(struct svc_program *, unsigned int,
 			void (*shutdown)(struct svc_serv*),
net/sunrpc/svc.c +0 -10
index 60c9e92..71023c7 100644
@@ -613,16 +613,6 @@ out_thread:
 }
 
 /*
- * Create a thread in the default pool.  Caller must hold BKL.
- */
-int
-svc_create_thread(svc_thread_fn func, struct svc_serv *serv)
-{
-	return __svc_create_thread(func, serv, &serv->sv_pools[0]);
-}
-EXPORT_SYMBOL(svc_create_thread);
-
-/*
  * Choose a pool in which to create a new thread, for svc_set_num_threads
  */
 static inline struct svc_pool *
Signature · 1 line
1.5.3.6