Re: mutex ownership (was: Re: [PATCH 19/24] Unionfs: Helper macros/inlines)

2007-01-26 Thread Steven Rostedt
On Tue, 2007-01-09 at 10:09 +0100, Oliver Neukum wrote: > Am Dienstag, 9. Januar 2007 10:02 schrieb Peter Zijlstra: > > Its a fundamental property of a mutex, not a shortcoming. A mutex has an > > owner, the one that takes and releases the resource. This allows things > > such as Priority Inherita

Re: mutex ownership (was: Re: [PATCH 19/24] Unionfs: Helper macros/inlines)

2007-01-09 Thread Oliver Neukum
Am Dienstag, 9. Januar 2007 10:02 schrieb Peter Zijlstra: > On Mon, 2007-01-08 at 13:28 -0800, Andrew Morton wrote: > > > Please use mutexes where possible.  Semaphores should only be used when > > their counting feature is employed.  And, arguably, in situations where a > > lock is locked and unl

mutex ownership (was: Re: [PATCH 19/24] Unionfs: Helper macros/inlines)

2007-01-09 Thread Peter Zijlstra
On Mon, 2007-01-08 at 13:28 -0800, Andrew Morton wrote: > Please use mutexes where possible. Semaphores should only be used when > their counting feature is employed. And, arguably, in situations where a > lock is locked and unlocked from different threads, because this presently > triggers mute

Re: [PATCH 19/24] Unionfs: Helper macros/inlines

2007-01-08 Thread Andrew Morton
On Sun, 7 Jan 2007 23:13:11 -0500 "Josef 'Jeff' Sipek" <[EMAIL PROTECTED]> wrote: > From: Josef "Jeff" Sipek <[EMAIL PROTECTED]> > > This patch contains many macros and inline functions used thoughout Unionfs. > > .. > > +#define ibstart(ino) (UNIONFS_I(ino)->bstart) > +#define ibend(ino) (UNIO

[PATCH 19/24] Unionfs: Helper macros/inlines

2007-01-07 Thread Josef 'Jeff' Sipek
From: Josef "Jeff" Sipek <[EMAIL PROTECTED]> This patch contains many macros and inline functions used thoughout Unionfs. Signed-off-by: Josef "Jeff" Sipek <[EMAIL PROTECTED]> Signed-off-by: David Quigley <[EMAIL PROTECTED]> Signed-off-by: Erez Zadok <[EMAIL PROTECTED]> --- fs/unionfs/fanout.h |