Skip to content

Commit e763a4b

Browse files
fix(zebin): fix deadlock in detach tile debug session
With Zebin enabled lock was called by a thread that already owns the mutex. This lock is not needed as it's already locked under another mutex in debuchDetach Signed-off-by: Kamil Kopryk <[email protected]> Source: 08e9fce
1 parent 8c050ee commit e763a4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

level_zero/tools/source/debug/debug_session_imp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021-2022 Intel Corporation
2+
* Copyright (C) 2021-2023 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -320,7 +320,6 @@ DebugSession *DebugSessionImp::attachTileDebugSession(Device *device) {
320320
}
321321

322322
void DebugSessionImp::detachTileDebugSession(DebugSession *tileSession) {
323-
std::unique_lock<std::mutex> lock(asyncThreadMutex);
324323

325324
uint32_t subDeviceIndex = Math::log2(static_cast<uint32_t>(tileSession->getConnectedDevice()->getNEODevice()->getDeviceBitfield().to_ulong()));
326325

0 commit comments

Comments
 (0)