mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-09 19:53:17 +07:00
SUNRPC fix regression in umount of a secure mount
If call_status returns ENOTCONN, we need to re-establish the connection
state after. Otherwise the client goes into an infinite loop of call_encode,
call_transmit, call_status (ENOTCONN), call_encode.
Fixes: c8485e4d63
("SUNRPC: Handle ECONNREFUSED correctly in xprt_transmit()")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Cc: stable@vger.kernel.org # v2.6.29+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
66d4218f99
commit
ec6017d903
@ -2288,13 +2288,13 @@ call_status(struct rpc_task *task)
|
|||||||
case -ECONNREFUSED:
|
case -ECONNREFUSED:
|
||||||
case -ECONNRESET:
|
case -ECONNRESET:
|
||||||
case -ECONNABORTED:
|
case -ECONNABORTED:
|
||||||
|
case -ENOTCONN:
|
||||||
rpc_force_rebind(clnt);
|
rpc_force_rebind(clnt);
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case -EADDRINUSE:
|
case -EADDRINUSE:
|
||||||
rpc_delay(task, 3*HZ);
|
rpc_delay(task, 3*HZ);
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case -EPIPE:
|
case -EPIPE:
|
||||||
case -ENOTCONN:
|
|
||||||
case -EAGAIN:
|
case -EAGAIN:
|
||||||
break;
|
break;
|
||||||
case -EIO:
|
case -EIO:
|
||||||
|
Loading…
Reference in New Issue
Block a user