From 52b4706bfb4510cd6ffa71433273b36034f48ad8 Mon Sep 17 00:00:00 2001 From: Enzo Matsumiya Date: Mon, 1 Dec 2025 13:20:26 -0300 Subject: smb: client: copy compression information to extra channels Pass down compression info from primary channel to each channel. Signed-off-by: Enzo Matsumiya --- fs/smb/client/sess.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/smb/client/sess.c b/fs/smb/client/sess.c index ef3b498b0a02..d9cd8766e09b 100644 --- a/fs/smb/client/sess.c +++ b/fs/smb/client/sess.c @@ -560,6 +560,9 @@ cifs_ses_add_channel(struct cifs_ses *ses, chan_server = cifs_get_tcp_session(ctx, ses->server); + if (ses->server->compression.enabled) + chan_server->compression = ses->server->compression; + spin_lock(&ses->chan_lock); chan = &ses->chans[ses->chan_count]; chan->server = chan_server; -- cgit v1.2.3