• S
    ocfs2/cluster: Pin/unpin o2hb regions · 58a3158a
    Sunil Mushran 提交于
    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: NSunil Mushran <sunil.mushran@oracle.com>
    Signed-off-by: NJoel Becker <joel.becker@oracle.com>
    58a3158a
heartbeat.c 66.0 KB