]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
SUNRPC: Handle connection breakages correctly in call_status()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 16 Aug 2019 12:58:48 +0000 (08:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:03 +0000 (07:18 +0200)
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 <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/clnt.c

index a680d28c231e94afdf6ad4b409cc74b5c3a6bd87..fbb85ea24ea0fdf2941ad5010c7a142f0fd0e9a7 100644 (file)
@@ -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 */