]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
SUNRPC fix regression in umount of a secure mount
authorOlga Kornievskaia <kolga@netapp.com>
Wed, 29 May 2019 14:46:00 +0000 (10:46 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 30 May 2019 19:15:42 +0000 (15:15 -0400)
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>
net/sunrpc/clnt.c

index d6e57da56c94df21d510459d419878e66c20b549..94a653be8e25ddf196cd973241b7c8868b8dfd0e 100644 (file)
@@ -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: