Skip to content

Commit

Permalink
SUNRPC: Handle connection breakages correctly in call_status()
Browse files Browse the repository at this point in the history
If the connection breaks while we're waiting for a reply from the
server, then we want to immediately try to reconnect.

Fixes: ec6017d ("SUNRPC fix regression in umount of a secure mount")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
  • Loading branch information
Trond Myklebust committed Aug 26, 2019
1 parent d571192 commit c82e547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c82e547

Please sign in to comment.