From: Trond Myklebust Date: Fri, 16 Aug 2019 12:58:48 +0000 (-0400) Subject: SUNRPC: Handle connection breakages correctly in call_status() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c82e5472c9980e0e483f4b689044150eefaca408;p=linux.git SUNRPC: Handle connection breakages correctly in call_status() 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 --- diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 8a25440b771ce..a07b516e503a0 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2382,7 +2382,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 */