* [PATCH] cifs: make default value of retrans as zero
@ 2026-03-11 5:18 nspmangalore
2026-03-11 5:26 ` Bharath SM
0 siblings, 1 reply; 3+ messages in thread
From: nspmangalore @ 2026-03-11 5:18 UTC (permalink / raw)
To: linux-cifs, smfrench, pc, bharathsm, dhowells; +Cc: Shyam Prasad N, stable
From: Shyam Prasad N <sprasad@microsoft.com>
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>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.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 54090739535fb..a4a7c7eee038c 100644
--- a/fs/smb/client/fs_context.c
+++ b/fs/smb/client/fs_context.c
@@ -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;
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] cifs: make default value of retrans as zero
2026-03-11 5:18 [PATCH] cifs: make default value of retrans as zero nspmangalore
@ 2026-03-11 5:26 ` Bharath SM
2026-03-11 18:30 ` Steve French
0 siblings, 1 reply; 3+ messages in thread
From: Bharath SM @ 2026-03-11 5:26 UTC (permalink / raw)
To: nspmangalore
Cc: linux-cifs, smfrench, pc, bharathsm, dhowells, Shyam Prasad N,
stable
On Tue, Mar 10, 2026 at 10:19 PM <nspmangalore@gmail.com> wrote:
>
> From: Shyam Prasad N <sprasad@microsoft.com>
>
> 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>
> Signed-off-by: Shyam Prasad N <sprasad@microsoft.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 54090739535fb..a4a7c7eee038c 100644
> --- a/fs/smb/client/fs_context.c
> +++ b/fs/smb/client/fs_context.c
> @@ -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;
> --
> 2.43.0
Thanks, Looks good to me.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cifs: make default value of retrans as zero
2026-03-11 5:26 ` Bharath SM
@ 2026-03-11 18:30 ` Steve French
0 siblings, 0 replies; 3+ messages in thread
From: Steve French @ 2026-03-11 18:30 UTC (permalink / raw)
To: Bharath SM
Cc: nspmangalore, linux-cifs, pc, bharathsm, dhowells, Shyam Prasad N,
stable
added to cifs-2.6.git for-next pending additional testing and reviews
On Wed, Mar 11, 2026 at 12:26 AM Bharath SM <bharathsm.hsk@gmail.com> wrote:
>
> On Tue, Mar 10, 2026 at 10:19 PM <nspmangalore@gmail.com> wrote:
> >
> > From: Shyam Prasad N <sprasad@microsoft.com>
> >
> > 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>
> > Signed-off-by: Shyam Prasad N <sprasad@microsoft.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 54090739535fb..a4a7c7eee038c 100644
> > --- a/fs/smb/client/fs_context.c
> > +++ b/fs/smb/client/fs_context.c
> > @@ -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;
> > --
> > 2.43.0
>
> Thanks, Looks good to me.
--
Thanks,
Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-11 18:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 5:18 [PATCH] cifs: make default value of retrans as zero nspmangalore
2026-03-11 5:26 ` Bharath SM
2026-03-11 18:30 ` Steve French
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox