[SRU][N:linux-azure][PATCH 2/2 v2] cifs: make default value of retrans as zero
John Cabaj
john.cabaj at canonical.com
Tue Apr 7 15:37:57 UTC 2026
From: Shyam Prasad N <sprasad at microsoft.com>
BugLink: https://bugs.launchpad.net/bugs/2147347
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 at vger.kernel.org>
Reviewed-by: Bharath SM <bharathsm at microsoft.com>
Signed-off-by: Shyam Prasad N <sprasad at microsoft.com>
Signed-off-by: Steve French <stfrench at microsoft.com>
(backported from commit e3beefd3af09f8e460ddaf39063d3d7664d7ab59)
[john-cabaj: leaving out additional context from following upstream
commits:
* e14b642: "cifs: Add new mount option -o nounicode to disable SMB1
UNICODE mode"
* eb90e8e: "smb: client: introduce reparse mount option"
* 660618d: "cifs: Add mount option -o symlink= for choosing symlink
create type"
* 45a99d5: "cifs: Add support for creating native Windows sockets"]
Signed-off-by: John Cabaj <john.cabaj at canonical.com>
---
fs/smb/client/fs_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c
index 63f0a4157e07..82a1bf0c2368 100644
--- a/fs/smb/client/fs_context.c
+++ b/fs/smb/client/fs_context.c
@@ -1825,7 +1825,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;
/*
* short int override_uid = -1;
--
2.43.0
More information about the kernel-team
mailing list