Commit 52531f77 authored by Xin Zhao's avatar Xin Zhao
Browse files

Simplify epoch checking in Win_lock

when lock_epoch_count != 0, we only need to check if access_state
is PER_TARGET in Win_lock.

No reviewer.
parent 17202c7c
......@@ -957,10 +957,7 @@ int MPIDI_Win_lock(int lock_type, int dest, int assert, MPID_Win * win_ptr)
mpi_errno, MPI_ERR_RMA_SYNC, "**rmasync");
}
else {
MPIU_ERR_CHKANDJUMP(win_ptr->states.access_state != MPIDI_RMA_NONE &&
win_ptr->states.access_state != MPIDI_RMA_FENCE_ISSUED &&
win_ptr->states.access_state != MPIDI_RMA_FENCE_GRANTED &&
win_ptr->states.access_state != MPIDI_RMA_PER_TARGET,
MPIU_ERR_CHKANDJUMP(win_ptr->states.access_state != MPIDI_RMA_PER_TARGET,
mpi_errno, MPI_ERR_RMA_SYNC, "**rmasync");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment