• Shyam Prasad N's avatar
    cifs: Identify a connection by a conn_id. · 6d82c27a
    Shyam Prasad N authored
    Introduced a new field conn_id in TCP_Server_Info structure.
    This is a non-persistent unique identifier maintained by the client
    for a connection to a file server. For this, a global counter named
    tcpSesNextId is maintained. On allocating a new TCP_Server_Info,
    this counter is incremented and assigned.
    
    Changed the dynamic tracepoints related to reconnects and
    crediting to be more informative (with conn_id printed).
    Debugging a crediting issue helped me understand the
    important things to print here.
    
    Always call dynamic tracepoints outside the scope of spinlocks.
    To do this, copy out the credits and in_flight fields of the
    server struct before dropping the lock.
    Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
    Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    6d82c27a
transport.c 42.8 KB