]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/sunrpc/clnt.c
SUNRPC: Ensure the RPC client only quits on fatal signals
[karo-tx-linux.git] / net / sunrpc / clnt.c
index 756fc324db9ec5dc37870c8f0a2c1e6b2f4d2573..5018acd241375d2d7d997d2c71de1cd7a6f9fa7a 100644 (file)
@@ -928,7 +928,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;