]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix random deadlock on pmcstat exit:
authorFabien Thomas <fabient@FreeBSD.org>
Tue, 27 Mar 2012 14:02:22 +0000 (14:02 +0000)
committerFabien Thomas <fabient@FreeBSD.org>
Tue, 27 Mar 2012 14:02:22 +0000 (14:02 +0000)
commit6f33c108f78bcc270cec72e50a69e31b13bc3ef6
treed6cedc28ae8893c3b53577cdd6e81e0c3d98d172
parentca950537bb475eab119e09c3bfa1d9d0d10ea162
Fix random deadlock on pmcstat exit:
- Exit the thread when soft shutdown is requested
- Wakeup owner thread.

Reproduced/tested by looping pmcstat measurement:
pmcstat -S instructions -O/tmp/test ls

MFC after: 1 week
sys/dev/hwpmc/hwpmc_logging.c