• Alex Elder's avatar
    rbd: reference count parent requests · a2acd00e
    Alex Elder authored
    Keep a reference count for uses of the parent information for an rbd
    device.
    
    An initial reference is set in rbd_img_request_create() if the
    target image has a parent (with non-zero overlap).  Each image
    request for an image with a non-zero parent overlap gets another
    reference when it's created, and that reference is dropped when the
    request is destroyed.
    
    The initial reference is dropped when the image gets torn down.
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    a2acd00e
rbd.c 132 KB