• Matan Barak's avatar
    IB/core: Explicitly destroy an object while keeping uobject · 4da70da2
    Matan Barak authored
    When some objects are destroyed, we need to extract their status at
    destruction. After object's destruction, this status
    (e.g. events_reported) relies in the uobject. In order to have the
    latest and correct status, the underlying object should be destroyed,
    but we should keep the uobject alive and read this information off the
    uobject. We introduce a rdma_explicit_destroy function. This function
    destroys the class type object (for example, the IDR class type which
    destroys the underlying object as well) and then convert the uobject
    to be of a null class type. This uobject will then be destroyed as any
    other uobject once uverbs_finalize_object[s] is called.
    Signed-off-by: default avatarMatan Barak <matanb@mellanox.com>
    Reviewed-by: default avatarYishai Hadas <yishaih@mellanox.com>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    4da70da2
rdma_core.c 21.7 KB