]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r318516: Fix time handling in cv_timedwait_hires().
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 26 May 2017 00:26:08 +0000 (00:26 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 26 May 2017 00:26:08 +0000 (00:26 +0000)
commitf28804f886ecdf7910bfb6fa2ccadfa5e7b63ccd
treec9ed3fe16e5f8a45d69b1701ed82f73bddf9ba95
parent6562f19d2c9cc9c0e6884c1adebe83ebf46ee99e
MFC r318516: Fix time handling in cv_timedwait_hires().

pthread_cond_timedwait() receives absolute time, not relative.  Passing
wrong time there caused two threads of zdb to spin in a tight loop.

git-svn-id: svn://svn.freebsd.org/base/stable/10@318910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/lib/libzpool/common/kernel.c