Skip to content

Commit de67ada

Browse files
committed
RDMA osc: remove extra retain on pending_op
Signed-off-by: Joseph Schuchart <schuchart@hlrs.de>
1 parent 5929ee5 commit de67ada

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ompi/mca/osc/rdma/osc_rdma_lock.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ static inline int ompi_osc_rdma_btl_fop (ompi_osc_rdma_module_t *module, struct
4545
pending_op = OBJ_NEW(ompi_osc_rdma_pending_op_t);
4646
assert (NULL != pending_op);
4747

48-
if (wait_for_completion) {
49-
OBJ_RETAIN(pending_op);
50-
} else {
48+
if (!wait_for_completion) {
5149
/* NTH: need to keep track of pending ops to avoid a potential teardown problem */
5250
pending_op->module = module;
5351
(void) opal_atomic_fetch_add_32 (&module->pending_ops, 1);

0 commit comments

Comments
 (0)