Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2519710pxj; Mon, 10 May 2021 05:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynap0av30l32pKbVgaOhktaKR674hPZYI44134KG6PQNjh/hlQCe7UKHXJOOhfxlC2puCz X-Received: by 2002:a6b:7b0b:: with SMTP id l11mr18168087iop.28.1620648325609; Mon, 10 May 2021 05:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620648325; cv=none; d=google.com; s=arc-20160816; b=RIeqJpkPHGIbmpTbsynP37ejPYt6G64qU7gbJwaZPu7BQXbQHPZibUt0YHj1ch54Bg 07MKItZN3GGEMl4tDmS67nJ2rg2SsJQfDonFQjl+otoqgB/8zxUc1J1wzI933MLG/BVw kjM493NA2ieRdwwUTLrriBRjUIArCfISFkF8F5IFj1i21hQwZ2HJHd42CdeTyaKkKSPX jlY8/tk4kYa2XwONB6nNcgHNI2Fj5JxoyMbqFusi3ETT8y1fnCTKMg2SAPaJn/UgY0yC NhEWAir6yzN9BvsPNB5B9Rjugw5lHBg12OKgv2p6zvGn8dkTiIclyCqdB1uG9rtIGd6x bJSQ== 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=uIk7eVZ1mgsHVnp/OUktVezKsySqXvQ3sSn0wF+H3QY=; b=Z05IyfAA9fJRqx3Zo63e8PJfmkkW8CqStwyJ64eVWoFsuP6itvFXq07zMIDEUhkxtT rqKls/FLl4P8VQxKxmDzz2dbnvCwgoNb2JgjGCjvOZrz1n7XoMYbanns/aWyergK+ypp XOV6ht1JJgiNbGy5f5oYyc27+f9AIMW0ChMTnK1dQFPvQOhv9n/rpsc9YhKAJRawDthq Di4QULns0xEzGdadagpL/mVaVxhSQzLbx2JSkhONMfXR3sLi5bKQqbe8F1Q2hQ9DtcQa RKysnz72jphG3gcWv5fAHP9mFB0iDz3lKxVkLxshZTSra75YwFtnqxQyWdbMiJciY08u r4Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JWVboEQB; 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 b1si15423962ioh.94.2021.05.10.05.05.12; Mon, 10 May 2021 05:05:25 -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=JWVboEQB; 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 S243492AbhEJL4E (ORCPT + 99 others); Mon, 10 May 2021 07:56:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:36656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235063AbhEJLFk (ORCPT ); Mon, 10 May 2021 07:05:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D1B196143B; Mon, 10 May 2021 10:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620644122; bh=F+SyeDTkn6YdAkQi4+yLmw3skfW6AiwplaBz3tQHj40=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JWVboEQB3NFHEq/czj5lr9+Y7aCYqjQpikOD0BIjhLYGsZU6o8YvNvSw1hej7+OJ2 I94FN8gLPuMT3TFU3ENTnLsWef2wsZQ+0FugBQrKfFw7nOE09Er8mEf1XpClKV297F ciX9BqD7RiRTrUWkqp5TeZPWNS4gGp7/pJbe3BnQ= 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.11 297/342] smb3: if max_channels set to more than one channel request multichannel Date: Mon, 10 May 2021 12:21:27 +0200 Message-Id: <20210510102019.922955574@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102010.096403571@linuxfoundation.org> References: <20210510102010.096403571@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 @@ -978,6 +978,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;