Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8774282c authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields
Browse files

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.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent e1ba1ab7
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -386,7 +386,6 @@ struct svc_serv * svc_create(struct svc_program *, unsigned int,
			      void (*shutdown)(struct svc_serv*));
			      void (*shutdown)(struct svc_serv*));
struct svc_rqst *svc_prepare_thread(struct svc_serv *serv,
struct svc_rqst *svc_prepare_thread(struct svc_serv *serv,
					struct svc_pool *pool);
					struct svc_pool *pool);
int		   svc_create_thread(svc_thread_fn, struct svc_serv *);
void		   svc_exit_thread(struct svc_rqst *);
void		   svc_exit_thread(struct svc_rqst *);
struct svc_serv *  svc_create_pooled(struct svc_program *, unsigned int,
struct svc_serv *  svc_create_pooled(struct svc_program *, unsigned int,
			void (*shutdown)(struct svc_serv*),
			void (*shutdown)(struct svc_serv*),
+0 −10
Original line number Original line Diff line number Diff line
@@ -618,16 +618,6 @@ __svc_create_thread(svc_thread_fn func, struct svc_serv *serv,
	goto out;
	goto out;
}
}


/*
 * 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
 * Choose a pool in which to create a new thread, for svc_set_num_threads
 */
 */