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
Этот коммит содержится в:
Saleel Kudchadker
2022-06-13 14:33:25 -07:00
родитель 4975f69337
Коммит 5df34a2f7a
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();
}