Skip to content
  • Alex Elder's avatar
    rbd: always pass ops array to rbd_req_sync_op() · 913d2fdc
    Alex Elder authored
    
    
    All of the callers of rbd_req_sync_op() except one pass a non-null
    "ops" pointer.  The only one that does not is rbd_req_sync_read(),
    which passes CEPH_OSD_OP_READ as its "opcode" and, CEPH_OSD_FLAG_READ
    for "flags".
    
    By allocating the ops array in rbd_req_sync_read() and moving the
    special case code for the null ops pointer into it, it becomes
    clear that much of that code is not even necessary.
    
    In addition, the "opcode" argument to rbd_req_sync_op() is never
    actually used, so get rid of that.
    
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    913d2fdc