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:
parent
d5711920ec
commit
c82e5472c9
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue