diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2024-01-17 07:09:16 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-01-19 17:31:57 +0100 |
commit | ce09f8d8a7130e6edfdd6fcad8eb277824d5de95 (patch) | |
tree | 96e9e37fc12b6bd173b8428a0acff804b08584a2 /fs/smb/client/fs_context.h | |
parent | cifs: reschedule periodic query for server interfaces (diff) | |
download | linux-ce09f8d8a7130e6edfdd6fcad8eb277824d5de95.tar.xz linux-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/fs_context.h')
-rw-r--r-- | fs/smb/client/fs_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/fs_context.h b/fs/smb/client/fs_context.h index cf46916286d0..182ce11cbe93 100644 --- a/fs/smb/client/fs_context.h +++ b/fs/smb/client/fs_context.h @@ -118,6 +118,7 @@ enum cifs_param { Opt_file_mode, Opt_dirmode, Opt_min_enc_offload, + Opt_retrans, Opt_blocksize, Opt_rasize, Opt_rsize, @@ -245,6 +246,7 @@ struct smb3_fs_context { unsigned int rsize; unsigned int wsize; unsigned int min_offload; + unsigned int retrans; bool sockopt_tcp_nodelay:1; /* attribute cache timemout for files and directories in jiffies */ unsigned long acregmax; |