Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 2003 11:20:31 -0800
From:      Jeffrey Hsu <hsu@FreeBSD.org>
To:        Guido van Rooij <guido@gvr.org>
Cc:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/netinet tcp_syncache.c
Message-ID:  <0HA700J3HMX8MM@mta6.snfc21.pbi.net>
In-Reply-To: Message from Guido van Rooij <guido@gvr.org> "of Wed, 12 Feb 2003 14:00:57 %2B0100." <20030212130057.GA27427@gvr.gvr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  > On Tue, Feb 11, 2003 at 04:42:12PM -0800, Jeffrey Hsu wrote:
  > > hsu         2003/02/11 16:42:12 PST
  > > 
  > >   Modified files:
  > >     sys/netinet          tcp_syncache.c 
  > >   Log:
  > >   Properly document that syncache timer processing requires an
  > >   exclusive TCP protocol lock.
  > 
  > This seems like a strange way of telling us you need a write-lock instead
  > of a read lock...
  > 
  > -Guido

A write lock is an exclusive lock.  (A read lock is a shared lock.)
Since INP_INFO_RLOCK() and INP_INFO_WLOCK() are both currently
defined to be the same mutex lock, this commit doesn't change anything
other than documenting for future reference when shared access can occur
and when exclusive access is required.

							Jeffrey


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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