• Jeff Layton's avatar
    cifs: wait indefinitely for responses · 0ade640e
    Jeff Layton authored
    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: default avatarSuresh Jayaraman <sjayaraman@suse.de>
    Reviewed-by: default avatarPavel Shilovsky <piastryyy@gmail.com>
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
    0ade640e
transport.c 22.9 KB