• Alex Elder's avatar
    rbd: always check IMG_DATA flag · 57acbaa7
    Alex Elder authored
    In a few spots, whether the an object request's img_request pointer
    is null is used to determine whether an object request is being done
    as part of an image data request.
    
    Stop doing that, and instead always use the object request IMG_DATA
    flag for that purpose.  Swap the order of the definition of the
    IMG_DATA and DONE flag helpers, because obj_request_done_set() now
    refers to obj_request_img_data_set() to get its rbd_dev value.
    
    This will become important because the img_request pointer is
    about to become part of a union.
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    57acbaa7
rbd.c 111 KB