@piotr @zfigura I solved the problem of deadlock by the following method + if (old.s.owners != -1){ + ERR("Lock %p is not owned exclusive!\n", lock); + RtlInitializeSRWLock(lock); + return ; + }
but This deadlock problem happens after crash, it's two problems.