From owner-svn-soc-all@FreeBSD.ORG Fri Jul 13 19:29:28 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id DF05A106566B for ; Fri, 13 Jul 2012 19:29:25 +0000 (UTC) (envelope-from gmiller@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Fri, 13 Jul 2012 19:29:25 +0000 Date: Fri, 13 Jul 2012 19:29:25 +0000 From: gmiller@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120713192925.DF05A106566B@hub.freebsd.org> Cc: Subject: socsvn commit: r239352 - in soc2012/gmiller/locking-head: . lib/libthr/thread X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 19:29:28 -0000 Author: gmiller Date: Fri Jul 13 19:29:25 2012 New Revision: 239352 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=239352 Log: r239325@FreeBSD-dev: root | 2012-07-13 13:47:28 -0500 Correct the logic for detecting the last unlock call for a recursive mutex. Modified: soc2012/gmiller/locking-head/ (props changed) soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c Modified: soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c ============================================================================== --- soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c Fri Jul 13 18:07:11 2012 (r239351) +++ soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c Fri Jul 13 19:29:25 2012 (r239352) @@ -769,10 +769,6 @@ PMUTEX_TYPE(m->m_flags) == PTHREAD_MUTEX_RECURSIVE && m->m_count > 0)) { m->m_count--; - - if (m->m_count == 0) { - LOCK_PROFILE_RELEASE(m); - } } else { LOCK_PROFILE_RELEASE(m);