Date: Sun, 29 Aug 2010 08:15:57 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r211960 - stable/8/lib/libthr/thread Message-ID: <201008290815.o7T8FvCN057421@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: davidxu Date: Sun Aug 29 08:15:57 2010 New Revision: 211960 URL: http://svn.freebsd.org/changeset/base/211960 Log: MFC r211833: Decrease rdlock count only when thread unlocked a reader lock. Modified: stable/8/lib/libthr/thread/thr_rtld.c Modified: stable/8/lib/libthr/thread/thr_rtld.c ============================================================================== --- stable/8/lib/libthr/thread/thr_rtld.c Sun Aug 29 08:10:34 2010 (r211959) +++ stable/8/lib/libthr/thread/thr_rtld.c Sun Aug 29 08:15:57 2010 (r211960) @@ -149,8 +149,8 @@ _thr_rtld_lock_release(void *lock) state = l->lock.rw_state; if (_thr_rwlock_unlock(&l->lock) == 0) { - curthread->rdlock_count--; if ((state & URWLOCK_WRITE_OWNER) == 0) { + curthread->rdlock_count--; THR_CRITICAL_LEAVE(curthread); } else { _thr_signal_unblock(curthread);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008290815.o7T8FvCN057421>