• Yan, Zheng's avatar
    ceph: improve reference tracking for snaprealm · 982d6011
    Yan, Zheng authored
    When snaprealm is created, its initial reference count is zero.
    But in some rare cases, the newly created snaprealm is not referenced
    by anyone. This causes snaprealm with zero reference count not freed.
    
    The fix is set reference count of newly snaprealm to 1. The reference
    is return the function who requests to create the snaprealm. When the
    function finishes its job, it releases the reference.
    Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
    982d6011
mds_client.c 96.5 KB