]> git.baikalelectronics.ru Git - kernel.git/commit
[CIFS] cifs: reconnect unresponsive servers
authorSteve French <sfrench@us.ibm.com>
Thu, 20 Jan 2011 18:06:34 +0000 (18:06 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Jan 2011 18:06:34 +0000 (18:06 +0000)
commitb8aaa2f7b2a4f61319f07bd7572ca636cc582aae
treec196d4a5211044760debd89eec810053f0025e45
parent0f17bb8e7d45c5b3a278878658e0dba88e81f1c9
[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>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c