K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-03-15T05:17:03.309472Z K 7 svn:log V 687 Hyper-V: hn: Relinquish cpu in HN_LOCK to avoid deadlock The try lock loop in HN_LOCK put the thread spinning on cpu if the lock is not available. It is possible to cause deadlock if the thread holding the lock is sleeping. Relinquish the cpu to work around this problem even it doesn't completely solve the issue. The priority inversion could cause the livelock no matter how less likely it could happen. A more complete solution may be needed in the future. Reported by: Microsoft, Netapp MFC after: 2 weeks Sponsored by: Microsoft (cherry picked from commit b3460f44524b145c6c8a760ebe65052560a810bf) Git Hash: 70f7b24753336efeb3cf6e73040780b2e4d28d8a Git Author: whu@FreeBSD.org END