SWDEV-435715 - Acquire the streamSetLock prior to iterating the set in WaitActiveStreams

Change-Id: I0a9721dcde1a3716192d532e290d8a7afc8ac9fc
This commit is contained in:
Ioannis Assiouras
2023-12-04 23:51:11 +00:00
parent 270c6d48f1
commit 3c6505c2d5
+1
View File
@@ -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()) {