From owner-cvs-src-old@FreeBSD.ORG Thu Aug 27 00:45:16 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 919C71065744 for ; Thu, 27 Aug 2009 00:45:16 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7FF248FC21 for ; Thu, 27 Aug 2009 00:45:16 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7R0jG1R033099 for ; Thu, 27 Aug 2009 00:45:16 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7R0jGWJ033098 for cvs-src-old@freebsd.org; Thu, 27 Aug 2009 00:45:16 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200908270045.n7R0jGWJ033098@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Thu, 27 Aug 2009 00:45:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/kern kern_rwlock.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 00:45:16 -0000 attilio 2009-08-27 00:45:00 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern kern_rwlock.c Log: SVN rev 196574 on 2009-08-27 00:45:00Z by attilio Fix a problem introduced when MFCing the rw_try_wlock() operation from HEAD: __rw_wunlock() relies on the cookie state to not be cleanly 'tid' when some conditions needing of special care happens, and lock recursion is among those. Dirty the cookie by adding the RW_LOCK_RECURSE flag in the case of a successfull try lock operation. This is not a problem on -CURRENT and STABLE_8 where the unlocking algorithm works differently. Submitted by: Andrew Brampton Revision Changes Path 1.28.4.5 +1 -0 src/sys/kern/kern_rwlock.c