• Srinivas Eeda's avatar
    ocfs2: Fix a race in o2dlm lockres mastery · 14741472
    Srinivas Eeda authored
    In o2dlm, the master of a lock resource keeps a map of all interested
    nodes.  This prevents the master from purging the resource before an
    interested node can create a lock.
    
    A race between the mastery thread and the mastery handler allowed an
    interested node to discover who the master is without informing the
    master directly.  This is easily fixed by holding the dlm spinlock a
    little longer in the mastery handler.
    Signed-off-by: default avatarSrinivas Eeda <srinivas.eeda@oracle.com>
    Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
    14741472
dlmmaster.c 94.1 KB