Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2554492pxj; Mon, 10 May 2021 05:49:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN7In8djOmIjyINOw5gFz/BZB9uxDuskDhsKDxgKl6A/rReBZWzESiUiWQ+PJffWYsgWHf X-Received: by 2002:a17:906:52d7:: with SMTP id w23mr26123530ejn.451.1620650981612; Mon, 10 May 2021 05:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620650981; cv=none; d=google.com; s=arc-20160816; b=0yBdZp+02cpXCz0704Nh+60yyyZKagTpfZYUIoaUlaPjwxBaU5ox2/w5NIDL+F8u0c koOskYFGfBsYeGUVLQoRfX8wHPWxzUpLML56ZCi0cUO1QHJHC08qaWXzAH6DsYGei6ty 3lUMLw9/tkParCLsqYMRcSARJpFvFo3ClrVPA0azNiEyHdlWuFa1mxnlDgdvr8UwHolc h0I4a9pHCA+us7l8pjVSvV1hDucgVusyndY/pPViZtS25lR69KxLjdBDdJA+HFgEAzJh uDtfdol/ESZ5ERDFnZKym6h9lvPSjy8GpYCrW2tkCYbno7KHSflWUHoww6xUpoObi0to VHbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yJKHNL4Q6WQus7Gicaa7OUtGIdoGa8o81C00JWPhRx0=; b=0iVVuSmbvU3hrldoPWuKFDIwg6idLJuhXc+EUoodH1dgX1G3XWj82zi3ndsECI6T9T cVyyGqPRMDwAg+kbAl/Ccb08jPk80H/2x2edc0xQbEC2hWUvUeOByituIMydCEAIiiIS F/NTkyCEOdZCSFd18qUs4t4xZBRG0AWtKkqQOtadrw643kxCDCkmMTBucScr4xGHKLWe 3FhW6bFEfTzQqhSvXhUwTxnVh4XCK1hRM57eDMRh3M17p0JK/7BQMxsJXY+Vg3RnIzoB Y+BmfLm2cnOHEpMUWmHyMCqxcOZZZOMxNqcCgLkBuYEK+sycx99rrHp/JBmo3oDelnX2 xeOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XD+9r+hN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si13509142edz.163.2021.05.10.05.49.11; Mon, 10 May 2021 05:49:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XD+9r+hN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347623AbhEJMgh (ORCPT + 99 others); Mon, 10 May 2021 08:36:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:54928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233693AbhEJLOP (ORCPT ); Mon, 10 May 2021 07:14:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C1A24613D6; Mon, 10 May 2021 11:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620645051; bh=QANS0ljvnCnbRtvgpWtW/mVl6DnT7ZXLlvRU1ul8g3E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XD+9r+hN13Pnu7EBm2hQcWK/GOhwVlX0FOWwP2Frcp8FXcx7w/bRVE7j+fewMgmys kLx94Peogsjam8ssRnK+PN6s756vTjhJL0qXRGM2z+4II8g8qye/nEJ32Y3DiAwBc8 RIdi/Q7Y3DEZHkwGOHq+8Nk1IyUHr6RObZqd9+Y8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve French , Tom Talpey , Shyam Prasad N Subject: [PATCH 5.12 330/384] smb3: if max_channels set to more than one channel request multichannel Date: Mon, 10 May 2021 12:21:59 +0200 Message-Id: <20210510102025.672915080@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102014.849075526@linuxfoundation.org> References: <20210510102014.849075526@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steve French commit c1f8a398b6d661b594556a91224b096d92293061 upstream. Mounting with "multichannel" is obviously implied if user requested more than one channel on mount (ie mount parm max_channels>1). Currently both have to be specified. Fix that so that if max_channels is greater than 1 on mount, enable multichannel rather than silently falling back to non-multichannel. Signed-off-by: Steve French Reviewed-By: Tom Talpey Cc: # v5.11+ Reviewed-by: Shyam Prasad N Signed-off-by: Greg Kroah-Hartman --- fs/cifs/fs_context.c | 3 +++ 1 file changed, 3 insertions(+) --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -999,6 +999,9 @@ static int smb3_fs_context_parse_param(s goto cifs_parse_mount_err; } ctx->max_channels = result.uint_32; + /* If more than one channel requested ... they want multichan */ + if (result.uint_32 > 1) + ctx->multichannel = true; break; case Opt_handletimeout: ctx->handle_timeout = result.uint_32;