From owner-freebsd-bugs@FreeBSD.ORG Fri Nov 11 16:50:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62F591065673 for ; Fri, 11 Nov 2011 16:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 531F98FC08 for ; Fri, 11 Nov 2011 16:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pABGoB91073250 for ; Fri, 11 Nov 2011 16:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pABGoBcU073248; Fri, 11 Nov 2011 16:50:11 GMT (envelope-from gnats) Date: Fri, 11 Nov 2011 16:50:11 GMT Message-Id: <201111111650.pABGoBcU073248@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Armin Gruner Cc: Subject: Re: misc/162403: regression in FreeBSD/9 regarding pthread timeouts in kernel context X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Armin Gruner List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 16:50:11 -0000 The following reply was made to PR misc/162403; it has been noted by GNATS. From: Armin Gruner To: Jilles Tjoelker 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