]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cifs: make default value of retrans as zero
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 11 Mar 2026 05:18:54 +0000 (10:48 +0530)
committerSteve French <stfrench@microsoft.com>
Wed, 11 Mar 2026 23:46:42 +0000 (18:46 -0500)
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: <stable@vger.kernel.org>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c

index 54090739535fbe3423288ebc6bceebdcbffa9762..a4a7c7eee038c1e965bde1b614a5bc9424340e55 100644 (file)
@@ -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;