On 12/27/2010 08:00 AM, Jeff Layton wrote:
> 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 <[email protected]>
> ---
>  fs/cifs/cifsfs.c   |    5 +++++
>  fs/cifs/cifsglob.h |    3 +++
>  fs/cifs/connect.c  |   21 +++++++++++++++++----
>  3 files changed, 25 insertions(+), 4 deletions(-)

Looks good to me.

Reviewed-by: Suresh Jayaraman <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to