SUNRPC: soft connect semantics for UDP
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / sunrpc / clnt.c
index 97931d9..154034b 100644 (file)
@@ -1380,6 +1380,10 @@ call_timeout(struct rpc_task *task)
        dprintk("RPC: %5u call_timeout (major)\n", task->tk_pid);
        task->tk_timeouts++;
 
+       if (RPC_IS_SOFTCONN(task)) {
+               rpc_exit(task, -ETIMEDOUT);
+               return;
+       }
        if (RPC_IS_SOFT(task)) {
                if (clnt->cl_chatty)
                        printk(KERN_NOTICE "%s: server %s not responding, timed out\n",