• Pavel Shilovsky's avatar
    CIFS: Fix credits calculation for cancelled requests · 8a26f0f7
    Pavel Shilovsky authored
    If a request is cancelled, we can't assume that the server returns
    1 credit back. Instead we need to wait for a response and process
    the number of credits granted by the server.
    
    Create a separate mid callback for cancelled request, parse the number
    of credits in a response buffer and add them to the client's credits.
    If the didn't get a response (no response buffer available) assume
    0 credits granted. The latter most probably happens together with
    session reconnect, so the client's credits are adjusted anyway.
    Signed-off-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    8a26f0f7
cifsglob.h 60.2 KB