Make biodone() default to wakeup() on the struct bio if no bio_done
method was specified.
This commit is contained in:
parent
85b62edb84
commit
9f6f6b7c2b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user