Make biodone() default to wakeup() on the struct bio if no bio_done

method was specified.
This commit is contained in:
Poul-Henning Kamp 2002-09-13 11:00:48 +00:00
parent 85b62edb84
commit 9f6f6b7c2b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103280

View File

@ -111,7 +111,10 @@ static __inline__ void
biodone(struct bio *bp)
{
bp->bio_flags |= BIO_DONE;
bp->bio_done(bp);
if (bp->bio_done != NULL)
bp->bio_done(bp);
else
wakeup(bp);
}
#ifndef _DEVICESTAT_H