Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec6017d9 authored by Olga Kornievskaia's avatar Olga Kornievskaia Committed by Anna Schumaker
Browse files

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: c8485e4d ("SUNRPC: Handle ECONNREFUSED correctly in xprt_transmit()")
Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
Cc: stable@vger.kernel.org # v2.6.29+
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 66d4218f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2288,13 +2288,13 @@ call_status(struct rpc_task *task)
	case -ECONNREFUSED:
	case -ECONNRESET:
	case -ECONNABORTED:
	case -ENOTCONN:
		rpc_force_rebind(clnt);
		/* fall through */
	case -EADDRINUSE:
		rpc_delay(task, 3*HZ);
		/* fall through */
	case -EPIPE:
	case -ENOTCONN:
	case -EAGAIN:
		break;
	case -EIO: