• Alex Elder's avatar
    rbd: fix rbd_dev_remove_parent() · ad945fc1
    Alex Elder authored
    In certain error paths, it is possible for an rbd device to have a
    parent spec but no parent rbd_dev.  In rbd_dev_remove_parent() use
    the parent field rather than parent_spec in determining whether to
    try to remove any parent devices.  Use assertions to indicate that
    any non-null parent pointer has parent_spec associated with it.
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    ad945fc1
rbd.c 130 KB