• Jeff Layton's avatar
    cifs: handle the TCP_Server_Info->tsk field more carefully · b1c8d2b4
    Jeff Layton authored
    cifs: handle the TCP_Server_Info->tsk field more carefully
    
    We currently handle the TCP_Server_Info->tsk field without any locking,
    but with some half-measures to try and prevent races. These aren't
    really sufficient though. When taking down cifsd, use xchg() to swap
    the contents of the tsk field with NULL so we don't end up trying
    to send it more than one signal. Also, don't allow cifsd to exit until
    the signal is received if we expect one.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
    b1c8d2b4
connect.c 110 KB