Commit 1b2dad14 authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

staging: lustre: remove unnecessary cfs_block_allsigs() calls

Threads started by kthread_run() ignore all signals,
as kthreadd() calls ignore_signals(), and this is
inherited by all children.
So there is no need to call cfs_block_allsigs() in functions
that are only run from kthread_run().
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 37d3b407
...@@ -3288,8 +3288,6 @@ kiblnd_connd(void *arg) ...@@ -3288,8 +3288,6 @@ kiblnd_connd(void *arg)
int peer_index = 0; int peer_index = 0;
unsigned long deadline = jiffies; unsigned long deadline = jiffies;
cfs_block_allsigs();
init_waitqueue_entry(&wait, current); init_waitqueue_entry(&wait, current);
kiblnd_data.kib_connd = current; kiblnd_data.kib_connd = current;
...@@ -3542,8 +3540,6 @@ kiblnd_scheduler(void *arg) ...@@ -3542,8 +3540,6 @@ kiblnd_scheduler(void *arg)
int busy_loops = 0; int busy_loops = 0;
int rc; int rc;
cfs_block_allsigs();
init_waitqueue_entry(&wait, current); init_waitqueue_entry(&wait, current);
sched = kiblnd_data.kib_scheds[KIB_THREAD_CPT(id)]; sched = kiblnd_data.kib_scheds[KIB_THREAD_CPT(id)];
...@@ -3676,8 +3672,6 @@ kiblnd_failover_thread(void *arg) ...@@ -3676,8 +3672,6 @@ kiblnd_failover_thread(void *arg)
LASSERT(*kiblnd_tunables.kib_dev_failover); LASSERT(*kiblnd_tunables.kib_dev_failover);
cfs_block_allsigs();
init_waitqueue_entry(&wait, current); init_waitqueue_entry(&wait, current);
write_lock_irqsave(glock, flags); write_lock_irqsave(glock, flags);
......
...@@ -1324,8 +1324,6 @@ int ksocknal_scheduler(void *arg) ...@@ -1324,8 +1324,6 @@ int ksocknal_scheduler(void *arg)
info = ksocknal_data.ksnd_sched_info[KSOCK_THREAD_CPT(id)]; info = ksocknal_data.ksnd_sched_info[KSOCK_THREAD_CPT(id)];
sched = &info->ksi_scheds[KSOCK_THREAD_SID(id)]; sched = &info->ksi_scheds[KSOCK_THREAD_SID(id)];
cfs_block_allsigs();
rc = cfs_cpt_bind(lnet_cpt_table(), info->ksi_cpt); rc = cfs_cpt_bind(lnet_cpt_table(), info->ksi_cpt);
if (rc) { if (rc) {
CWARN("Can't set CPU partition affinity to %d: %d\n", CWARN("Can't set CPU partition affinity to %d: %d\n",
...@@ -2078,8 +2076,6 @@ ksocknal_connd(void *arg) ...@@ -2078,8 +2076,6 @@ ksocknal_connd(void *arg)
int nloops = 0; int nloops = 0;
int cons_retry = 0; int cons_retry = 0;
cfs_block_allsigs();
init_waitqueue_entry(&wait, current); init_waitqueue_entry(&wait, current);
spin_lock_bh(connd_lock); spin_lock_bh(connd_lock);
...@@ -2472,8 +2468,6 @@ ksocknal_reaper(void *arg) ...@@ -2472,8 +2468,6 @@ ksocknal_reaper(void *arg)
int peer_index = 0; int peer_index = 0;
unsigned long deadline = cfs_time_current(); unsigned long deadline = cfs_time_current();
cfs_block_allsigs();
INIT_LIST_HEAD(&enomem_conns); INIT_LIST_HEAD(&enomem_conns);
init_waitqueue_entry(&wait, current); init_waitqueue_entry(&wait, current);
......
...@@ -335,8 +335,6 @@ lnet_acceptor(void *arg) ...@@ -335,8 +335,6 @@ lnet_acceptor(void *arg)
LASSERT(!lnet_acceptor_state.pta_sock); LASSERT(!lnet_acceptor_state.pta_sock);
cfs_block_allsigs();
rc = lnet_sock_listen(&lnet_acceptor_state.pta_sock, 0, accept_port, rc = lnet_sock_listen(&lnet_acceptor_state.pta_sock, 0, accept_port,
accept_backlog); accept_backlog);
if (rc) { if (rc) {
......
...@@ -1226,8 +1226,6 @@ lnet_router_checker(void *arg) ...@@ -1226,8 +1226,6 @@ lnet_router_checker(void *arg)
struct lnet_peer *rtr; struct lnet_peer *rtr;
struct list_head *entry; struct list_head *entry;
cfs_block_allsigs();
while (the_lnet.ln_rc_state == LNET_RC_STATE_RUNNING) { while (the_lnet.ln_rc_state == LNET_RC_STATE_RUNNING) {
__u64 version; __u64 version;
int cpt; int cpt;
......
...@@ -170,8 +170,6 @@ stt_timer_main(void *arg) ...@@ -170,8 +170,6 @@ stt_timer_main(void *arg)
{ {
int rc = 0; int rc = 0;
cfs_block_allsigs();
while (!stt_data.stt_shuttingdown) { while (!stt_data.stt_shuttingdown) {
stt_check_timers(&stt_data.stt_prev_slot); stt_check_timers(&stt_data.stt_prev_slot);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment