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

Change-Id: I0a9721dcde1a3716192d532e290d8a7afc8ac9fc


[ROCm/clr commit: 3c6505c2d5]
Этот коммит содержится в:
Ioannis Assiouras
2023-12-04 23:51:11 +00:00
родитель 85e9925335
Коммит 4a96c2fe15
+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()) {