tech-kern archive

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

Re: memcpy of struct buf, or similar?



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.

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index