]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
smb3: if max_channels set to more than one channel request multichannel
authorSteve French <stfrench@microsoft.com>
Sat, 8 May 2021 00:33:51 +0000 (19:33 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 19 May 2021 08:32:25 +0000 (10:32 +0200)
commitf8cc7c73081d07ac72210d5a70a1b85152e37261
tree13d2514c2b91232cba6edcaea3717c7af3a01ac2
parent89007fc402678cbd914bf2ed35e8ade94bcd0c6a
smb3: if max_channels set to more than one channel request multichannel

BugLink: https://bugs.launchpad.net/bugs/1928857
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 <stfrench@microsoft.com>
Reviewed-By: Tom Talpey <tom@talpey.com>
Cc: <stable@vger.kernel.org> # v5.11+
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/cifs/fs_context.c