diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2024-01-17 06:09:16 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-01-19 10:31:57 -0600 |
commit | ce09f8d8a7130e6edfdd6fcad8eb277824d5de95 (patch) | |
tree | 96e9e37fc12b6bd173b8428a0acff804b08584a2 /fs/smb/client/connect.c | |
parent | 49fe25ce838183afac20f40457157ec009a86930 (diff) | |
download | linux-stable-ce09f8d8a7130e6edfdd6fcad8eb277824d5de95.tar.gz linux-stable-ce09f8d8a7130e6edfdd6fcad8eb277824d5de95.tar.bz2 linux-stable-ce09f8d8a7130e6edfdd6fcad8eb277824d5de95.zip |
cifs: new mount option called retrans
We have several places in the code where we treat the
error -EAGAIN very differently. Some code retry for
arbitrary number of times.
Introducing this new mount option named "retrans", so
that all these handlers of -EAGAIN can retry a fixed
number of times. This applies only to soft mounts.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/connect.c')
-rw-r--r-- | fs/smb/client/connect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c index 3052a208c6ca..bfd568f89710 100644 --- a/fs/smb/client/connect.c +++ b/fs/smb/client/connect.c @@ -1574,6 +1574,9 @@ static int match_server(struct TCP_Server_Info *server, if (server->min_offload != ctx->min_offload) return 0; + if (server->retrans != ctx->retrans) + return 0; + return 1; } @@ -1798,6 +1801,7 @@ smbd_connected: goto out_err_crypto_release; } tcp_ses->min_offload = ctx->min_offload; + tcp_ses->retrans = ctx->retrans; /* * at this point we are the only ones with the pointer * to the struct since the kernel thread not created yet |