• Paulo Alcantara's avatar
    cifs: ensure correct super block for DFS reconnect · 3786f4bd
    Paulo Alcantara authored
    This patch is basically fixing the lookup of tcons (DFS specific) during
    reconnect (smb2pdu.c:__smb2_reconnect) to update their prefix paths.
    
    Previously, we relied on the TCP_Server_Info pointer
    (misc.c:tcp_super_cb) to determine which tcon to update the prefix path
    
    We could not rely on TCP server pointer to determine which super block
    to update the prefix path when reconnecting tcons since it might map
    to different tcons that share same TCP connection.
    
    Instead, walk through all cifs super blocks and compare their DFS full
    paths with the tcon being updated to.
    Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
    3786f4bd
misc.c 29.6 KB