• Sunil Mushran's avatar
    ocfs2/dlm: Add missing dlm_lock_put()s · 2c5c54ac
    Sunil Mushran authored
    Normally locks for remote nodes are freed when that node sends an UNLOCK
    message to the master. The master node tags an DLM_UNLOCK_FREE_LOCK action
    to do an extra put on the lock at the end.
    
    However, there are times when the master node has to free the locks for the
    remote nodes forcibly.
    
    Two cases when this happens are:
    1. When the master has migrated the lockres plus all locks to another node.
    2. When the master is clearing all the locks of a dead node.
    
    It was in the above two conditions that the dlm was missing the extra put.
    Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
    Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
    Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    2c5c54ac
dlmrecovery.c 82.2 KB