diff options
author | Steve French <sfrench@us.ibm.com> | 2011-01-20 13:06:34 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-01-20 13:06:34 -0500 |
commit | fda3594362184383e73f0a2a5fa5b38ac0e04fd8 (patch) | |
tree | c196d4a5211044760debd89eec810053f0025e45 /fs/cifs/cifsglob.h | |
parent | c74093b694998d30105d9904686da5e3576497c4 (diff) |
[CIFS] cifs: reconnect unresponsive servers
If the server isn't responding to echoes, we don't want to leave tasks
hung waiting for it to reply. At that point, we'll want to reconnect
so that soft mounts can return an error to userspace quickly.
If the client hasn't received a reply after a specified number of echo
intervals, assume that the transport is down and attempt to reconnect
the socket.
The number of echo_intervals to wait before attempting to reconnect is
tunable via a module parameter. Setting it to 0, means that the client
will never attempt to reconnect. The default is 5.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 9c728dd5b146..7040abc638fa 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -804,6 +804,9 @@ GLOBAL_EXTERN unsigned int cifs_min_rcv; /* min size of big ntwrk buf pool */ | |||
804 | GLOBAL_EXTERN unsigned int cifs_min_small; /* min size of small buf pool */ | 804 | GLOBAL_EXTERN unsigned int cifs_min_small; /* min size of small buf pool */ |
805 | GLOBAL_EXTERN unsigned int cifs_max_pending; /* MAX requests at once to server*/ | 805 | GLOBAL_EXTERN unsigned int cifs_max_pending; /* MAX requests at once to server*/ |
806 | 806 | ||
807 | /* reconnect after this many failed echo attempts */ | ||
808 | GLOBAL_EXTERN unsigned short echo_retries; | ||
809 | |||
807 | void cifs_oplock_break(struct work_struct *work); | 810 | void cifs_oplock_break(struct work_struct *work); |
808 | void cifs_oplock_break_get(struct cifsFileInfo *cfile); | 811 | void cifs_oplock_break_get(struct cifsFileInfo *cfile); |
809 | void cifs_oplock_break_put(struct cifsFileInfo *cfile); | 812 | void cifs_oplock_break_put(struct cifsFileInfo *cfile); |