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

Change-Id: I0a9721dcde1a3716192d532e290d8a7afc8ac9fc


[ROCm/clr commit: 3c6505c2d5]
Šī revīzija ir iekļauta:
Ioannis Assiouras committed 2023-12-05 04:12:24 -05:00
1 vecāks 85e9925335
revīzija 4a96c2fe15
1 file changed
+1
@@ -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()) {