]> git.karo-electronics.de Git - mv-sheeva.git/commit
cifs: wait indefinitely for responses
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Jan 2011 12:24:02 +0000 (07:24 -0500)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Jan 2011 17:07:49 +0000 (17:07 +0000)
commit0ade640e9cda805692dbf688f4bb69e94719275a
tree79676b2553e1d7c6a49dd31fb455c0c3ef27b5a0
parent2fbc2f1729e785a7b2faf9d8d60926bb1ff62af0
cifs: wait indefinitely for responses

The client should not be timing out on individual SMB requests. Too much
of the state between client and server is tied to the state of the
socket. If we time out requests and issue spurious disconnects then that
comprimises data integrity.

Instead of doing this complicated dance where we try to decide how long
to wait for a response for particular requests, have the client instead
wait indefinitely for a response. Also, use a TASK_KILLABLE sleep here
so that fatal signals will break out of this waiting.

Later patches will add support for detecting dead peers and forcing
reconnects based on that.

Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/transport.c