• Shyam Prasad N's avatar
    cifs: avoid use of global locks for high contention data · d7d7a66a
    Shyam Prasad N authored
    During analysis of multichannel perf, it was seen that
    the global locks cifs_tcp_ses_lock and GlobalMid_Lock, which
    were shared between various data structures were causing a
    lot of contention points.
    
    With this change, we're breaking down the use of these locks
    by introducing new locks at more granular levels. i.e.
    server->srv_lock, ses->ses_lock and tcon->tc_lock to protect
    the unprotected fields of server, session and tcon structs;
    and server->mid_lock to protect mid related lists and entries
    at server level.
    Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    d7d7a66a
smb2pdu.c 156 KB