]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In do_lock_pi(), do not return prematurely.
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 15 Jul 2019 08:39:52 +0000 (08:39 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 15 Jul 2019 08:39:52 +0000 (08:39 +0000)
commitad038195bd69aaf35c4bde17e73a847ad47ccbf9
treef2504cd841529c52cbd7d1a251d94533c7834564
parent40bd868ba7fd8e941cb0e4ea599489ef459d6095
In do_lock_pi(), do not return prematurely.

If umtxq_check_susp() indicates an exit, we should clean the resources
before returning.  Do it by breaking out of the loop and relying on
post-loop cleanup.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 12 days
Differential revision: https://reviews.freebsd.org/D20949
sys/kern/kern_umtx.c