[8/8] SUNRPC: Handle connection breakages correctly in call_status()
diff mbox series

Message ID 20190817212217.22766-8-trond.myklebust@hammerspace.com
State New
Headers show
  • [1/8] NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup
Related show

Commit Message

Trond Myklebust Aug. 17, 2019, 9:22 p.m. UTC
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>
 net/sunrpc/clnt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 9546a4c72838..f13ec73c8299 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -2375,7 +2375,7 @@  call_status(struct rpc_task *task)
 	case -ENOTCONN:
-		/* fall through */
+		break;
 		rpc_delay(task, 3*HZ);
 		/* fall through */