Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2009 00:45:00 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_rwlock.c
Message-ID:  <200908270045.n7R0jGWJ033098@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <brampton plus freebsd at gmail dot com>
  
  Revision  Changes    Path
  1.28.4.5  +1 -0      src/sys/kern/kern_rwlock.c



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