biodone panics

Alex Lyashkov shadow at psoft.net
Thu Sep 29 00:17:16 PDT 2005


> 
> > biodone(struct bio *bp)
> > {
> >         void (*done)(struct bio *);
> >
> >         mtx_lock(&bdonelock);
> >         bp->bio_flags |= BIO_DONE;
> >         done = bp->bio_done
> >         if (done == NULL)
> >                 wakeup(bp);
> >         mtx_unlock(&bdonelock);
> >         if (done != NULL)
> >                 bp->bio_done(bp);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
posible it should be 
if(done != NULL)
	done(bp); 
?
> > }
> 
> Anyone agree?
> _______________________________________________

-- 
FreeVPS Developers Team  http://www.freevps.com
Positive Software        http://www.psoft.net



More information about the freebsd-current mailing list