Subject: Re: CVS commit: src/sys
To: Andrew Doran <ad@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 07/29/2007 20:39:10
On Sun, Jul 29, 2007 at 02:17:22PM +0100, Andrew Doran wrote:
> 
> o VOP_LOCK and VOP_UNLOCK would need to go away. To make VOP calls you'd
>   only need a reference to the vnode.
> 
> o There are some place where VOP_ACCESS is followed by a another call into
>   the file system. Those checks would need to go into the file system.

Maybe VOP_LOCK() should be reserved for this use only.
The fs would need its own lock for the vnode data, and something for
the reference count.

> o We'd need a VOP_RWLOCK or VOP_RANGELOCK for concurrent reads/writes.

Is this needed outside of the fs internals ?
Apart from file locking .....
 
	David

-- 
David Laight: david@l8s.co.uk