Re: VFS: C99 sparse format for struct vfsops

From: Paul Richards <paul_at_freebsd-services.com>
Date: Wed, 4 Jun 2003 13:26:02 +0100
On Wed, Jun 04, 2003 at 12:09:00PM +0100, Doug Rabson wrote:
> On Mon, 2003-06-02 at 21:04, Paul Richards wrote:
> > On Tue, 2003-06-03 at 18:19, M. Warner Losh wrote:
> > > 
> > > Notice how thread 1's _m gets set based on the results of the kobj
> > > lookup, and we have a race, even if thread1 and thread2 took out their
> > > driver instance locks.
> > 
> > That means we have to lock the dispatch table before every method is
> > looked up and hold it until the method returns (the alternative would be
> > to free it inside the method once it had been called but that'd be a
> > right mess).
> 
> Don't even think about trying to put a mutex into the kobj dispatch

I wasn't, I was just pointing out what would be necessary if the
cacheing problem wasn't resolved :-)

-- 
Tis a wise thing to know what is wanted, wiser still to know when
it has been achieved and wisest of all to know when it is unachievable
for then striving is folly. [Magician]
Received on Wed Jun 04 2003 - 03:26:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:10 UTC