Do not call waitUserFence under lock

Related-To: NEO-7454

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2022-11-09 14:17:43 +00:00
committed by Compute-Runtime-Automation
parent f71f6c564d
commit 623f471321

View File

@@ -1283,7 +1283,11 @@ void Drm::waitForBind(uint32_t vmHandleId) {
return;
}
auto lock = this->lockBindFenceMutex();
waitUserFence(0u, castToUint64(&this->pagingFence[vmHandleId]), this->fenceVal[vmHandleId], ValueWidth::U64, -1, ioctlHelper->getWaitUserFenceSoftFlag());
auto fenceAddress = castToUint64(&this->pagingFence[vmHandleId]);
auto fenceValue = this->fenceVal[vmHandleId];
lock.unlock();
waitUserFence(0u, fenceAddress, fenceValue, ValueWidth::U64, -1, ioctlHelper->getWaitUserFenceSoftFlag());
}
bool Drm::isSetPairAvailable() {