• Steve French's avatar
    smb3: do not reserve too many oplock credits · e8eeca0b
    Steve French authored
    
    
    There were cases reported where servers will sometimes return more
    credits than requested on oplock break responses, which can lead to
    most of the credits being allocated for oplock breaks (instead of
    for normal operations like read and write) if number of SMB3 requests
    in flight always stays above 0 (the oplock and echo credits are
    rebalanced when in flight requests goes down to zero).
    
    If oplock credits gets unexpectedly large (e.g. three is more than it
    would ever be expected to be) and in flight requests are greater than
    zero, then rebalance the oplock credits and regular credits (go
    back to reserving just one oplock credit).
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    e8eeca0b
smb2ops.c 162 KB