]> git.baikalelectronics.ru Git - 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)
committerSteve French <stfrench@microsoft.com>
Sat, 8 May 2021 15:51:06 +0000 (10:51 -0500)
commit6ff0138c6cf5f7cc3b2434b261b0ac445324c3a5
tree4cf51dc147147f4b3630305dd9bbde66e2abfe21
parent44a68435f472750a2453e5733f198460960145ac
smb3: if max_channels set to more than one channel request multichannel

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>
fs/cifs/fs_context.c