From: Trond Myklebust Date: Fri, 16 Aug 2019 12:58:48 +0000 (-0400) Subject: SUNRPC: Handle connection breakages correctly in call_status() X-Git-Tag: v5.2.17~117 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1fb6db57b831bdbfcf9adde3617d56fad2511381;p=users%2Fdwmw2%2Flinux.git SUNRPC: Handle connection breakages correctly in call_status() commit c82e5472c9980e0e483f4b689044150eefaca408 upstream. If the connection breaks while we're waiting for a reply from the server, then we want to immediately try to reconnect. Fixes: ec6017d90359 ("SUNRPC fix regression in umount of a secure mount") Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index a680d28c231e9..fbb85ea24ea0f 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2301,7 +2301,7 @@ call_status(struct rpc_task *task) case -ECONNABORTED: case -ENOTCONN: rpc_force_rebind(clnt); - /* fall through */ + break; case -EADDRINUSE: rpc_delay(task, 3*HZ); /* fall through */