SWDEV-335780 - Indicate if handler is queued

Maintain status of handler callback. For event records we no longer
submit callbacks to reduce the load on the async handler thread. However
without a callback we leak command memory/decrement refcounts. Indicate
status of the handler which we can use to queue a callback when
finish is called.

Change-Id: I89fd02f3d047a0e8162664ee17581a14795f1928


[ROCm/clr commit: 5df34a2f7a]
Цей коміт міститься в:
Saleel Kudchadker
2022-06-13 14:33:25 -07:00
джерело acf2856677
коміт b3ad41f6e4
6 змінених файлів з 20 додано та 5 видалено
+1 -2
Переглянути файл
@@ -114,8 +114,7 @@ void HostQueue::finish() {
return;
}
}
if (nullptr == command || !isCacheFlushed) {
if (nullptr == command || !isCacheFlushed || vdev()->isHandlerPending()) {
if (nullptr != command) {
command->release();
}