Skip to content

Commit

Permalink
SWDEV-435715 - Acquire the streamSetLock prior to iterating the set i…
Browse files Browse the repository at this point in the history
…n WaitActiveStreams

Change-Id: I0a9721dcde1a3716192d532e290d8a7afc8ac9fc
  • Loading branch information
iassiour committed Dec 5, 2023
1 parent 270c6d4 commit 3c6505c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hipamd/src/hip_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ void iHipWaitActiveStreams(hip::Stream* blocking_stream, bool wait_null_stream)
}

//Reset the dirty flag for all streams now that the marker is submitted
amd::ScopedLock lock(streamSetLock);
for (const auto& stream : streamSet) {
amd::HostQueue* active_queue = stream->asHostQueue();
if (active_queue->vdev()->isFenceDirty()) {
Expand Down

0 comments on commit 3c6505c

Please sign in to comment.