aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sunrpc/clnt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index e775ca793249..924916ceaa43 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -579,9 +579,12 @@ struct rpc_task *rpc_run_task(const struct rpc_task_setup *task_setup_data)
579 } 579 }
580 atomic_inc(&task->tk_count); 580 atomic_inc(&task->tk_count);
581 /* Mask signals on synchronous RPC calls and RPCSEC_GSS upcalls */ 581 /* Mask signals on synchronous RPC calls and RPCSEC_GSS upcalls */
582 rpc_task_sigmask(task, &oldset); 582 if (!RPC_IS_ASYNC(task)) {
583 rpc_execute(task); 583 rpc_task_sigmask(task, &oldset);
584 rpc_restore_sigmask(&oldset); 584 rpc_execute(task);
585 rpc_restore_sigmask(&oldset);
586 } else
587 rpc_execute(task);
585 ret = task; 588 ret = task;
586out: 589out:
587 return ret; 590 return ret;