[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TAKE - Move XFS out of the interrupt disabling game



On Fri, May 24, 2002 at 07:20:34AM -0500, Stephen Lord wrote:
> lock_t == spinlock
> 
> The places where we define something as a spinlock directly were done
> for linux. The original irix definitions use lock_t.

That's not what I meant.  In fs/xfs/support/spin.h there is a mapping of
the Linux spinlock_t to the IRIX lock_t and also some mapping of the
operations which are named differently.  It looks to me this is the
basic IRIX spinlock primitive (unlike the SVR4.2MP lock_t which is a
rather highlevel lock), still there is mutex_spinlock/mutex_spinunlock
in fs/xfs/support/mutex.h that operate on Linux spinlock_t but seem to
emulate some IRIX primitives as there would be no other reason to have them.

Somehow I seems to miss the point of mutex_spinlock/mutex_spinunlock..

> They are I think accessible on the web already along with a lot of other
> stuff:
> 
> 	http://techpubs.sgi.com/library/tpl/cgi-bin/init.cgi

Hmm, this doesn't even mention mutex* :P