Skip to content
  • David Teigland's avatar
    dlm: avoid unnecessary posix unlock · 90008318
    David Teigland authored
    
    
    When the kernel clears flocks/plocks during close, it calls posix
    unlock when there are flocks but no posix locks.  Without this
    patch, that unnecessary posix unlock is passed to userland
    (dlm_controld), across the cluster, and back to the kernel.
    This can create a lot of plock activity, even when no posix
    locks had been used.
    
    This patch copies the nfs approach, and skips the full posix
    unlock if there is no plock found during the vfs unlock phase.
    
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    90008318