Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 2009 14:39:57 +0200
From:      Rink Springer <rink@FreeBSD.org>
To:        Attilio Rao <attilio@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r195403 - head/lib/libthr/thread
Message-ID:  <20090706123957.GA76863@rink.nu>
In-Reply-To: <200907060931.n669V4Zc074488@svn.freebsd.org>
References:  <200907060931.n669V4Zc074488@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 06, 2009 at 09:31:04AM +0000, Attilio Rao wrote:
> Log:
>   In the current code, rdlock_count is not correctly handled for some cases.
>   The most notable is that it is not bumped in rwlock_rdlock_common() when
>   the hard path (__thr_rwlock_rdlock()) returns successfully.
>   This can lead to deadlocks in libthr when rwlocks recursion in read mode
>   happens.
>   Fix the interested parts by correctly handling rdlock_count.
>   
>   PR:		threads/136345
>   Reported by:	rink
>   Tested by:	rink
>   Reviewed by:	jeff
>   Approved by:	re (kib)
>   MFC:		2 weeks

Thanks!

-- 
Rink P.W. Springer                                - http://rink.nu
"Doom, gloom and despair. I like it!"
- Tiresias



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090706123957.GA76863>