• Pavel Shilovsky's avatar
    CIFS: Fix oplock break handling (try #2) · 12fed00d
    Pavel Shilovsky authored
    When we get oplock break notification we should set the appropriate
    value of OplockLevel field in oplock break acknowledge according to
    the oplock level held by the client in this time. As we only can have
    level II oplock or no oplock in the case of oplock break, we should be
    aware only about clientCanCacheRead field in cifsInodeInfo structure.
    
    Also fix bug connected with wrong interpretation of OplockLevel field
    during oplock break notification processing.
    Signed-off-by: default avatarPavel Shilovsky <piastryyy@gmail.com>
    Cc: <stable@kernel.org>
    Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
    12fed00d
misc.c 22.1 KB