Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2282281ybl; Thu, 19 Dec 2019 10:58:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwUmzyJ9P8xCpgTyrpdYfo0ma168MSoWXL4K5Pf25xMXlpPiEwqncvXJqD4xkupMrnDqzoT X-Received: by 2002:a9d:6e15:: with SMTP id e21mr10278787otr.125.1576781918034; Thu, 19 Dec 2019 10:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576781918; cv=none; d=google.com; s=arc-20160816; b=b0DbdiXeenDwsvO1HUrdnFhED5Y8IxLexqg7sPH8k6hVRRPdZz7lIpScyh4nENJJ3/ qf/tPhzKh8rCBbnsxaQPXXByvYjTt9EDMnAxxMa9qIdaByPYtPAE/pHyQoljZChSBpfe gNYRjgWj9ro7xYhEVC41eYjP0BlZkv1zLhLidxVw2JAvJg9oeYqQEztRa9Tnd/6YpM6a UYsEjFUJO8gMnNqZmHO3VgGk+0onFHvLSHi1OM9VvvSNy6moLv9TV3H9uLY6fw3aSIkZ Eh7WjbYtL/XSBxae+mTNbPtOAiF8+8k/qAJuhFzn8ZPPQhjGVVSV3+YiVBUw9Lb/MoAC QFAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2dxMePG10zIvCTQvMTl3l9q1RU6Fd47VOfKZa76K/Cc=; b=EJ3qYZuXW+SsRTht5B1152YA2QLVymV6egz/anSaQ1Q88PjFnv/41bjAOhcpDcfcC7 N4KT144X8tpvXZJ3p4jpqb79ci4gkxNNGnYO/COFdYwvRaUbxEIUXbLmKThG55riZ91c PEKtI//0t8zMzW/QL5QTv2bF5ix/Ka0BoPLN1L3d8o/r8COIK/Ll10wz7vSDHIFcFUJc trmYV3L7malmmzrsZRNe8VCZACBVTovOB9O+ylOLs0e4FzLYvnhQCvr9MqhEzW9LEy3p q05wbOdyH7wEaThVM5VcWM7zbyQPbJ7fPKqPUa2mBFGBtmMERgaFiRR7eSiEykN2yLX1 Kc5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HyAcvWhl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f22si1303835otp.178.2019.12.19.10.58.25; Thu, 19 Dec 2019 10:58:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HyAcvWhl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730845AbfLSS4i (ORCPT + 99 others); Thu, 19 Dec 2019 13:56:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:53080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730819AbfLSS43 (ORCPT ); Thu, 19 Dec 2019 13:56:29 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1199424680; Thu, 19 Dec 2019 18:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576781788; bh=Yo9CFf4PoozPwftEeU9+puyfoaQCOgPONOUKYf5ajww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HyAcvWhlV4AQLa030c4M7RzPFYwIWMGC/UTk8IW4mZrP4R/b63Gk1eZ5mX7mAhOln WD4+gSMnXhq3TL85lG6NJDzXIe9MaWG44zyEkD06x08pEzOEcpu0QVVQLYlbvOiewf LgdVx+lIlMegwjh14mCG+UTmlGDuetRtFSGY/VCg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Long Li , Steve French Subject: [PATCH 5.4 32/80] cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state Date: Thu, 19 Dec 2019 19:34:24 +0100 Message-Id: <20191219183105.601289021@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183031.278083125@linuxfoundation.org> References: <20191219183031.278083125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Long Li commit acd4680e2bef2405a0e1ef2149fbb01cce7e116c upstream. The transport should return this error so the upper layer will reconnect. Signed-off-by: Long Li Cc: stable@vger.kernel.org Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- fs/cifs/smbdirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/cifs/smbdirect.c +++ b/fs/cifs/smbdirect.c @@ -1972,7 +1972,7 @@ read_rfc1002_done: if (info->transport_status != SMBD_CONNECTED) { log_read(ERR, "disconnected\n"); - return 0; + return -ECONNABORTED; } goto again;