Skip to contentSkip to conversation

cifs: make default value of retrans as zero

PATCH In review [email protected] 3 participants 3 messages Mar 11

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: make default value of retrans as zero

From: Shyam Prasad N <[email protected]>

When retrans mount option was introduced, the default value was set as 1. However, in the light of some bugs that this has exposed recently we should change it to 0 and retain the old behaviour before this option was introduced.

---
 fs/smb/client/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/smb/client/fs_context.c +1 -1
index 54090739535fb..a4a7c7eee038c 100644
@@ -1997,7 +1997,7 @@ int smb3_init_fs_context(struct fs_context *fc)
 	ctx->backupuid_specified = false; /* no backup intent for a user */
 	ctx->backupgid_specified = false; /* no backup intent for a group */
 
-	ctx->retrans = 1;
+	ctx->retrans = 0;
 	ctx->reparse_type = CIFS_REPARSE_TYPE_DEFAULT;
 	ctx->symlink_type = CIFS_SYMLINK_TYPE_DEFAULT;
 	ctx->nonativesocket = 0;
Signature · 1 line
2.43.0
#1 lore raw
Quoted 28 lines · On Tue, Mar 10, 2026 at 10:19 PM <[email protected]> wrote:

From: Shyam Prasad N <[email protected]>

When retrans mount option was introduced, the default value was set as 1. However, in the light of some bugs that this has exposed recently we should change it to 0 and retain the old behaviour before this option was introduced.

---
 fs/smb/client/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/smb/client/fs_context.c +1 -2
index 54090739535fb..a4a7c7eee038c 100644
@@ -1997,7 +1997,7 @@ int smb3_init_fs_context(struct fs_context *fc)
        ctx->backupuid_specified = false; /* no backup intent for a user */
        ctx->backupgid_specified = false; /* no backup intent for a group */
 
-       ctx->retrans = 1;
+       ctx->retrans = 0;
        ctx->reparse_type = CIFS_REPARSE_TYPE_DEFAULT;
        ctx->symlink_type = CIFS_SYMLINK_TYPE_DEFAULT;
        ctx->nonativesocket = 0;
--
Quoted 1 line

2.43.0

Thanks, Looks good to me.

#2 lore raw

added to cifs-2.6.git for-next pending additional testing and reviews

Quoted 33 lines · Bharath SM
Quoted 28 lines · On Tue, Mar 10, 2026 at 10:19 PM <[email protected]> wrote:

From: Shyam Prasad N <[email protected]>

When retrans mount option was introduced, the default value was set as 1. However, in the light of some bugs that this has exposed recently we should change it to 0 and retain the old behaviour before this option was introduced.

---
 fs/smb/client/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/smb/client/fs_context.c +1 -2
index 54090739535fb..a4a7c7eee038c 100644
@@ -1997,7 +1997,7 @@ int smb3_init_fs_context(struct fs_context *fc)
        ctx->backupuid_specified = false; /* no backup intent for a user */
        ctx->backupgid_specified = false; /* no backup intent for a group */
 
-       ctx->retrans = 1;
+       ctx->retrans = 0;
        ctx->reparse_type = CIFS_REPARSE_TYPE_DEFAULT;
        ctx->symlink_type = CIFS_SYMLINK_TYPE_DEFAULT;
        ctx->nonativesocket = 0;
--
Quoted 1 line

2.43.0

Thanks, Looks good to me.

Signature · 3 lines
Thanks,

Steve