Skip to contentSkip to conversation

CIFS: Propagate min offload along with other parameters from primary to secondary channels.

PATCH In review [email protected] 3 participants 3 messages Mar 28, 2025 – Mar 30, 2025 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): Z66BwJnHAI8zDOzP@linuxbox.oloxx3b4wsrernbskgt3tooxxe.gx.internal.cloudapp.net

#1 lore raw

PATCH 1/2 CIFS: Propagate min offload along with other parameters from primary to secondary channels.

From: Aman <[email protected]>

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
- retrans

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

---
 fs/smb/client/sess.c | 2 ++
 1 file changed, 2 insertions(+)
fs/smb/client/sess.c +2 -0
index 91d4d409c..35ae7ad3b 100644
@@ -522,6 +522,8 @@ cifs_ses_add_channel(struct cifs_ses *ses,
 	ctx->sockopt_tcp_nodelay = ses->server->tcp_nodelay;
 	ctx->echo_interval = ses->server->echo_interval / HZ;
 	ctx->max_credits = ses->server->max_credits;
+	ctx->min_offload = ses->server->min_offload;
+	ctx->retrans = ses->server->retrans;
 
 	/*
 	 * This will be used for encoding/decoding user/domain/pw
Signature · 1 line
2.43.0
#2 lore raw
Quoted 34 lines · On Fri, Mar 28, 2025 at 11:43 AM <[email protected]> wrote:

From: Aman <[email protected]>

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
- retrans

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

---
 fs/smb/client/sess.c | 2 ++
 1 file changed, 2 insertions(+)
fs/smb/client/sess.c +2 -1
index 91d4d409c..35ae7ad3b 100644
@@ -522,6 +522,8 @@ cifs_ses_add_channel(struct cifs_ses *ses,
        ctx->sockopt_tcp_nodelay = ses->server->tcp_nodelay;
        ctx->echo_interval = ses->server->echo_interval / HZ;
        ctx->max_credits = ses->server->max_credits;
+       ctx->min_offload = ses->server->min_offload;
+       ctx->retrans = ses->server->retrans;
 
        /*
         * This will be used for encoding/decoding user/domain/pw
--
Quoted 3 lines

2.43.0

Looks good to me. These are low risk and I've validated that this change works as a part of my multichannel test runs.

Signature · 2 lines
Regards,
Shyam

A message that is not in the archive (sent off-list or not yet received): CAH2r5mtmHNisb91cr4jSBjuTRJp-J2DOHDaYmSRTM8MbdKEG_g@mail.gmail.com

#4 lore raw

PATCH 1/2 CIFS: Propagate min offload along with other parameters from primary to secondary channels.

I have also verified that ignore_signature is not properly propagated across channels (the original patch , so am looking at the original patch to verify the remaining five fields (that are propagated across channels in the original patch).

Quoted 37 lines · On Fri, Mar 28, 2025 at 1:13 AM <[email protected]> wrote:

From: Aman <[email protected]>

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
- retrans

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

---
 fs/smb/client/sess.c | 2 ++
 1 file changed, 2 insertions(+)
fs/smb/client/sess.c +2 -1
index 91d4d409c..35ae7ad3b 100644
@@ -522,6 +522,8 @@ cifs_ses_add_channel(struct cifs_ses *ses,
        ctx->sockopt_tcp_nodelay = ses->server->tcp_nodelay;
        ctx->echo_interval = ses->server->echo_interval / HZ;
        ctx->max_credits = ses->server->max_credits;
+       ctx->min_offload = ses->server->min_offload;
+       ctx->retrans = ses->server->retrans;
 
        /*
         * This will be used for encoding/decoding user/domain/pw
--

2.43.0

Signature · 9 lines
Thanks,

Steve


-- 
Thanks,

Steve