From: Olga Kornievskaia Date: Wed, 29 May 2019 14:46:00 +0000 (-0400) Subject: SUNRPC fix regression in umount of a secure mount X-Git-Tag: v4.1.12-124.31.3~25 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6b538844f05a7d4182ec742b35760f94f9bd95bf;p=users%2Fjedix%2Flinux-maple.git 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 Cc: stable@vger.kernel.org # v2.6.29+ Signed-off-by: Anna Schumaker (cherry picked from commit ec6017d9035986a36de064f48a63245930bfad6f) Orabug: 29926734 Signed-off-by: Calum Mackay Reviewed-by: Bill Baker Signed-off-by: Brian Maly --- diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 9d7bc3aafbff..d466a2a5d014 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2051,12 +2051,12 @@ call_status(struct rpc_task *task) case -ECONNREFUSED: case -ECONNRESET: case -ECONNABORTED: + case -ENOTCONN: rpc_force_rebind(clnt); case -EADDRINUSE: case -ENOBUFS: rpc_delay(task, 3*HZ); case -EPIPE: - case -ENOTCONN: task->tk_action = call_bind; break; case -EAGAIN: