]> Gentwo Git Trees - linux/.git/commit
cifs: client: force multichannel=off when max_channels=1
authorRajasi Mandal <rajasimandal@microsoft.com>
Mon, 22 Sep 2025 08:24:16 +0000 (08:24 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Oct 2025 03:42:15 +0000 (22:42 -0500)
commit37e263e68c5e27d5f1fbc1377f64f9373dc5bf15
tree3de820eee9d9226a0fd7f25dee4e3f8ad57e60e8
parentaa12118dbcfe659697567c9daa0eac2c71e3fd37
cifs: client: force multichannel=off when max_channels=1

Previously, specifying both multichannel and max_channels=1 as mount
options would leave multichannel enabled, even though it is not
meaningful when only one channel is allowed. This led to confusion and
inconsistent behavior, as the client would advertise multichannel
capability but never establish secondary channels.

Fix this by forcing multichannel to false whenever max_channels=1,
ensuring the mount configuration is consistent and matches user intent.
This prevents the client from advertising or attempting multichannel
support when it is not possible.

Signed-off-by: Rajasi Mandal <rajasimandal@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c