cifs: make default value of retrans as zero
Subsystems (3)
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
@@ -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
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.
Cc <[email protected]>Signed-off-by Shyam Prasad N <[email protected]>--- fs/smb/client/fs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/smb/client/fs_context.c +1
-2@@ -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.
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.
Cc <[email protected]>Signed-off-by Shyam Prasad N <[email protected]>--- fs/smb/client/fs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/smb/client/fs_context.c +1
-2@@ -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