CIFS: Propagate min offload along with other parameters from primary to secondary channels.
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): Z66BwJnHAI8zDOzP@linuxbox.oloxx3b4wsrernbskgt3tooxxe.gx.internal.cloudapp.net
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
@@ -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
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
- retransBy copying these parameters, we ensure consistency across channels and prevent performance degradation due to missing or outdated settings.
Signed-off-by Aman <[email protected]>--- fs/smb/client/sess.c | 2 ++ 1 file changed, 2 insertions(+)fs/smb/client/sess.c +2
-1@@ -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
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
- retransBy copying these parameters, we ensure consistency across channels and prevent performance degradation due to missing or outdated settings.
Signed-off-by Aman <[email protected]>--- fs/smb/client/sess.c | 2 ++ 1 file changed, 2 insertions(+)fs/smb/client/sess.c +2
-1@@ -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