• Sunil Mushran's avatar
    ocfs2/cluster: Pin/unpin o2hb regions · 58a3158a
    Sunil Mushran authored
    This patch adds support for pinning o2hb regions in configfs. Pinning disallows
    a region to be cleanly stopped as long as it has an active dependent user
    (read o2dlm).
    
    In local heartbeat mode, the region uuid matching the domain name is pinned as
    long as the o2dlm domain is active.
    
    In global heartbeat mode, all regions are pinned as long as there is atleast
    one dependent user and the region count is 3 or less. All regions are unpinned
    if the number of dependent users is zero or region count is greater than 3.
    Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
    Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
    58a3158a
dlmdomain.c 58.6 KB