Skip to content

Commit 2a45574

Browse files
neilbrownchucklever
authored andcommitted
SUNRPC: Remove return value of svc_pool_wake_idle_thread()
The returned value is not used (any more), so don't return it. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 6859d1f commit 2a45574

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

include/linux/sunrpc/svc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ int svc_register(const struct svc_serv *, struct net *, const int,
420420

421421
void svc_wake_up(struct svc_serv *);
422422
void svc_reserve(struct svc_rqst *rqstp, int space);
423-
bool svc_pool_wake_idle_thread(struct svc_pool *pool);
423+
void svc_pool_wake_idle_thread(struct svc_pool *pool);
424424
struct svc_pool *svc_pool_for_cpu(struct svc_serv *serv);
425425
char * svc_print_addr(struct svc_rqst *, char *, size_t);
426426
const char * svc_proc_name(const struct svc_rqst *rqstp);

net/sunrpc/svc.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,8 @@ svc_prepare_thread(struct svc_serv *serv, struct svc_pool *pool, int node)
697697
* service thread and marking it BUSY is atomic with respect to
698698
* other calls to svc_pool_wake_idle_thread().
699699
*
700-
* Return value:
701-
* %true: An idle thread was awoken
702-
* %false: No idle thread was found
703700
*/
704-
bool svc_pool_wake_idle_thread(struct svc_pool *pool)
701+
void svc_pool_wake_idle_thread(struct svc_pool *pool)
705702
{
706703
struct svc_rqst *rqstp;
707704

@@ -715,12 +712,11 @@ bool svc_pool_wake_idle_thread(struct svc_pool *pool)
715712
rcu_read_unlock();
716713
percpu_counter_inc(&pool->sp_threads_woken);
717714
trace_svc_wake_up(rqstp->rq_task->pid);
718-
return true;
715+
return;
719716
}
720717
rcu_read_unlock();
721718

722719
set_bit(SP_CONGESTED, &pool->sp_flags);
723-
return false;
724720
}
725721

726722
static struct svc_pool *

0 commit comments

Comments
 (0)