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: ec6017d903 ("SUNRPC fix regression in umount of a secure mount")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
Trond Myklebust 2019-08-16 08:58:48 -04:00
parent d5711920ec
commit c82e5472c9
1 changed files with 1 additions and 1 deletions

View File

@ -2382,7 +2382,7 @@ call_status(struct rpc_task *task)
case -ECONNABORTED: case -ECONNABORTED:
case -ENOTCONN: case -ENOTCONN:
rpc_force_rebind(clnt); rpc_force_rebind(clnt);
/* fall through */ break;
case -EADDRINUSE: case -EADDRINUSE:
rpc_delay(task, 3*HZ); rpc_delay(task, 3*HZ);
/* fall through */ /* fall through */