]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
CIFS: Propagate min offload along with other parameters from primary to secondary...
authorAman <aman1@microsoft.com>
Thu, 6 Mar 2025 17:46:43 +0000 (17:46 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 26 Mar 2025 19:51:03 +0000 (14:51 -0500)
commit1821e90be08e7d4a54cd167dd818d80d06e064e9
tree8eba6a8b17b447ca063c268a5c655129396fc0c2
parentb26df4f57b6c42d6ecda281df8c0c2ec2f32885e
CIFS: Propagate min offload along with other parameters from primary to secondary channels.

In a multichannel setup, it was observed that a few fields were not being
copied over to the secondary channels, which impacted performance in cases
where these options were relevant but not properly synchronized. To address
this, this patch introduces copying the following parameters from the
primary channel to the secondary channels:

- min_offload
- compression.requested
- dfs_conn
- ignore_signature
- leaf_fullpath
- noblockcnt
- retrans
- sign

By copying these parameters, we ensure consistency across channels and
prevent performance degradation due to missing or outdated settings.

Cc: stable@vger.kernel.org
Signed-off-by: Aman <aman1@microsoft.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c
fs/smb/client/sess.c