Commit e12376fd authored by Xin Zhao's avatar Xin Zhao
Browse files

Bug-fix: handle dest==MPI_PROC_NULL in Win_flush/flush_local

No reviewer.
parent e92b7746
......@@ -1093,6 +1093,9 @@ int MPIDI_Win_flush(int dest, MPID_Win *win_ptr)
OPA_read_write_barrier();
}
if (dest == MPI_PROC_NULL)
goto finish_flush;
/* When the process tries to acquire the lock on itself, it does not
go through the progress engine. Therefore, it is possible that
one process always grants the lock to itself but never process
......@@ -1186,6 +1189,9 @@ int MPIDI_Win_flush_local(int dest, MPID_Win * win_ptr)
win_ptr->states.access_state != MPIDI_RMA_LOCK_ALL_GRANTED,
mpi_errno, MPI_ERR_RMA_SYNC, "**rmasync");
if (dest == MPI_PROC_NULL)
goto finish_flush_local;
/* When the process tries to acquire the lock on itself, it does not
go through the progress engine. Therefore, it is possible that
one process always grants the lock to itself but never process
......
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