summaryrefslogtreecommitdiff
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2011-06-17 10:14:59 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-06-17 10:17:19 -0400
commit5afa9133cfe67f1bfead6049a9640c9262a7101c (patch)
tree7b410b2d33069b3bad042ebe1944557533cc76c4 /net/sunrpc/clnt.c
parentee7b75fc4f3ae49e1f25bf56219bb5de3c29afaf (diff)
downloadlinux-3.10-5afa9133cfe67f1bfead6049a9640c9262a7101c.tar.gz
linux-3.10-5afa9133cfe67f1bfead6049a9640c9262a7101c.tar.bz2
linux-3.10-5afa9133cfe67f1bfead6049a9640c9262a7101c.zip
SUNRPC: Ensure the RPC client only quits on fatal signals
Fix a couple of instances where we were exiting the RPC client on arbitrary signals. We should only do so on fatal signals. Cc: stable@kernel.org Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 566bcfd067f..8c9141583d6 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1061,7 +1061,7 @@ call_allocate(struct rpc_task *task)
dprintk("RPC: %5u rpc_buffer allocation failed\n", task->tk_pid);
- if (RPC_IS_ASYNC(task) || !signalled()) {
+ if (RPC_IS_ASYNC(task) || !fatal_signal_pending(current)) {
task->tk_action = call_allocate;
rpc_delay(task, HZ>>4);
return;