SUNRPC: Don't skip timeout checks in call_connect_status()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 17 Sep 2023 15:26:27 +0000 (11:26 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 22 Oct 2023 23:47:56 +0000 (19:47 -0400)
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c

index f6074a4b9eabf121fdc474a106dd33446eaeeeb0..e49c11ef7c5006109df2fff0c659b42e5391f096 100644 (file)
@@ -2220,7 +2220,7 @@ call_connect_status(struct rpc_task *task)
                        }
                        xprt_switch_put(xps);
                        if (!task->tk_xprt)
-                               return;
+                               goto out;
                }
                goto out_retry;
        case -ENOBUFS:
@@ -2235,6 +2235,7 @@ out_next:
 out_retry:
        /* Check for timeouts before looping back to call_bind */
        task->tk_action = call_bind;
+out:
        rpc_check_timeout(task);
 }