]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix destruction of the robust mutexes.
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 23 Sep 2019 13:24:31 +0000 (13:24 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 23 Sep 2019 13:24:31 +0000 (13:24 +0000)
commitf9bf9282c9803ebc6774f3de6a566d84aaa8f192
tree7b4dbc3c8e4c3e2b8ee6eb5ba847b90920d9a7ce
parent2e6a21bbd8416c532a4c207caf01e7d2b47f7327
Fix destruction of the robust mutexes.

If robust mutex' owner terminated, causing kernel-assisted state
recovery, and then pthread_mutex_destroy() is executed as the next
action, assert is triggered about mutex still being on the list.
Ignore the mutex linkage in pthread_mutex_destroy() for shared robust
mutexes with dead owner, same as for enqueue_mutex().

Reported by: avg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
lib/libthr/thread/thr_mutex.c