tech-kern archive

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

Re: memcpy of struct buf, or similar?



On Tue, Jun 10, 2008 at 01:42:39AM +1000, Simon Burge wrote:
> Simon Burge wrote:
> 
> > Simon Burge wrote:
> > 
> > > Chris Gilbert wrote:
> > > 
> > > > Simon Burge wrote:
> > > > > Andrew Doran wrote:
> > > > > 
> > > > >> I am trying to fix PR 38761.  [ ... ]
> > > > > 
> > > > > FWIW, just sticking a
> > > > > 
> > > > >       KASSERT(mutex_owned(&bufcache_lock));
> > > > > 
> > > > > before each time b_cflags is modified fails to reach single user when 
> > > > > it
> > > > > hits genfs_getpages():
> > > > > 
> > > > > [ ... ]
> > 
> > All modifications of b_cflags are checked with the above
> > KASSERT except kern/vfs_bio.c:nestiobuf_setup() and
> > miscfs/genfs/genfs_io.c:genfs_getpages() and I've still ended
> > up with one process in biowait, another in biolock and a bunch
> > in tstile.
> 
> My last for the night...  With Andy's patched biowait()/biodone() and
> the above KASSERTS, I fairly quickly got while doing a build:

Are you running with LOCKDEBUG? It's probably failure to release a spin
mutex.

Andrew


Home | Main Index | Thread Index | Old Index