Date: Fri, 11 Nov 2011 16:50:11 GMT From: Armin Gruner <ag@muc.de> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/162403: regression in FreeBSD/9 regarding pthread timeouts in kernel context Message-ID: <201111111650.pABGoBcU073248@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR misc/162403; it has been noted by GNATS.
From: Armin Gruner <ag@muc.de>
To: Jilles Tjoelker <jilles@stack.nl>
Cc: bug-followup@FreeBSD.org, davidxu@FreeBSD.org, ag-freebsd@muc.de
Subject: Re: misc/162403: regression in FreeBSD/9 regarding pthread timeouts
in kernel context
Date: Fri, 11 Nov 2011 17:22:45 +0100
On Thu, Nov 10, 2011 at 11:14:46PM +0100, Jilles Tjoelker wrote:
> > [pthread_cond_timedwait() does not time out when called from RT
> > priority process]
>
> It looks like _thr_ucond_wait() drops the flags such as CVWAIT_ABSTIME
> and CVWAIT_CLOCKID that may be passed from cond_wait_kernel() in
> thr_cond.c. The below patch fixes the problem for me.
> Testing and review would be nice.
<...>
Hi Jilles,
I'm impressed how fast you took care of the PR! :-)
Yes, the fix works for me!
Thanks!
Greetings from Munich
Armin
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111111650.pABGoBcU073248>
