aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-13 11:00:48 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-13 11:00:48 +0000
commit9f6f6b7c2be500cef29b6d2ef84c9eec332ff8e1 (patch)
treefdcd8b8d2c217961c5e78ba334dd1464094b446a /sys/sys/bio.h
parent85b62edb84393c81196ef559705f4b1be25e10d8 (diff)
downloadsrc-9f6f6b7c2be500cef29b6d2ef84c9eec332ff8e1.tar.gz
src-9f6f6b7c2be500cef29b6d2ef84c9eec332ff8e1.zip
Make biodone() default to wakeup() on the struct bio if no bio_done
method was specified.
Notes
Notes: svn path=/head/; revision=103280
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index d5a9b7008625..7f2d64b6e68e 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -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