• P
    CIFS: Fix oplock break handling (try #2) · 12fed00d
    Pavel Shilovsky 提交于
    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: NPavel Shilovsky <piastryyy@gmail.com>
    Cc: <stable@kernel.org>
    Signed-off-by: NSteve French <sfrench@us.ibm.com>
    12fed00d
cifsproto.h 17.9 KB