Skip to content

Commit 63c45e9

Browse files
committed
OSHMEM: fixes potential deadlock in shmem_lock()
Signed-off-by: Alex Mikheev <[email protected]>
1 parent 0a24363 commit 63c45e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

oshmem/shmem/c/shmem_lock.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ static uint64_t shmem_lock_cswap(void *target,
270270

271271
prev_value = prev_value_32;
272272
}
273-
273+
/* function is used to busy wait for the value.
274+
* Call opal_progress() so that ompi will no deadlock
275+
* (for example may need to respond to rkey requests)
276+
*/
277+
opal_progress();
274278
return prev_value;
275279
}
276280

0 commit comments

Comments
 (0)