Re: Locking fundamentals

2006-12-28 Thread Duane Whitty
On Thu, Dec 28, 2006 at 11:33:44AM +0100, Jeremie Le Hen wrote: > Hi Duane, > > On Wed, Dec 20, 2006 at 12:18:43AM -0400, Duane Whitty wrote: > > I have read the man pages describing each family of locks, John Baldwin's > > BSDCon 2002 paper, Jeffrey Hsu's paper, the Arch handbook, and the source.

Re: Locking fundamentals

2006-12-28 Thread Attilio Rao
2006/12/24, Duane Whitty <[EMAIL PROTECTED]>: On Sat, Dec 23, 2006 at 02:24:10PM +0100, Alexander Leidinger wrote: > Quoting "Attilio Rao" <[EMAIL PROTECTED]> (Fri, 22 Dec 2006 23:25:53 +0100): > > > 2006/12/22, Robert Watson <[EMAIL PROTECTED]>: > > > On Thu, 21 Dec 2006, Attilio Rao wrote: > >

Re: Locking fundamentals

2006-12-24 Thread Duane Whitty
On Sat, Dec 23, 2006 at 02:24:10PM +0100, Alexander Leidinger wrote: > Quoting "Attilio Rao" <[EMAIL PROTECTED]> (Fri, 22 Dec 2006 23:25:53 +0100): > > > 2006/12/22, Robert Watson <[EMAIL PROTECTED]>: > > > On Thu, 21 Dec 2006, Attilio Rao wrote: > > [explanation] > > Could someone of you make a

Re: Locking fundamentals

2006-12-23 Thread Alexander Leidinger
Quoting "Attilio Rao" <[EMAIL PROTECTED]> (Fri, 22 Dec 2006 23:25:53 +0100): > 2006/12/22, Robert Watson <[EMAIL PROTECTED]>: > > On Thu, 21 Dec 2006, Attilio Rao wrote: [explanation] Could someone of you make a copy and paste of and a little bit of gluing the parts together somewhere? Maybe in

Re: Locking fundamentals

2006-12-22 Thread Attilio Rao
2006/12/22, Robert Watson <[EMAIL PROTECTED]>: On Thu, 21 Dec 2006, Attilio Rao wrote: >> I disagree. There are many uses of atomic operations in the kernel that are >> not for locks or refcounts. It's a bad idea to use locks if you can achieve >> the same thing locklessly, with atomic operation

Re: Locking fundamentals

2006-12-22 Thread Robert Watson
On Thu, 21 Dec 2006, Attilio Rao wrote: I disagree. There are many uses of atomic operations in the kernel that are not for locks or refcounts. It's a bad idea to use locks if you can achieve the same thing locklessly, with atomic operations. I can agree with you about this but atomic instruc

Re: Locking fundamentals

2006-12-21 Thread Attilio Rao
2006/12/21, Suleiman Souhlal <[EMAIL PROTECTED]>: Attilio Rao wrote: > 2006/12/20, Duane Whitty <[EMAIL PROTECTED]>: > >> Hello again, >> >> It seems to me that understanding locking holds the key to >> understanding fbsd internals. >> >>

Re: Locking fundamentals

2006-12-21 Thread Suleiman Souhlal
Attilio Rao wrote: 2006/12/20, Duane Whitty <[EMAIL PROTECTED]>: Hello again, It seems to me that understanding locking holds the key to understanding fbsd internals. Could someone review my understanding of fbsd locking fundamentals. (No assertions here, just questions) lo

Re: Locking fundamentals

2006-12-20 Thread Attilio Rao
2006/12/20, Duane Whitty <[EMAIL PROTECTED]>: Hello again, It seems to me that understanding locking holds the key to understanding fbsd internals. Could someone review my understanding of fbsd locking fundamentals. (No assertions here, just questions) lo

Re: Locking fundamentals

2006-12-20 Thread Hans Petter Selasky
On Wednesday 20 December 2006 05:18, Duane Whitty wrote: > Hello again, > > It seems to me that understanding locking holds the key to > understanding fbsd internals. > > Could someone review my understanding of fbsd locking fundamentals. > (No assertions here, just questio

Locking fundamentals

2006-12-19 Thread Duane Whitty
Hello again, It seems to me that understanding locking holds the key to understanding fbsd internals. Could someone review my understanding of fbsd locking fundamentals. (No assertions here, just questions) lock_mgr mutexes|sx_lock ---^ atomic