diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-13 11:00:48 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-09-13 11:00:48 +0000 |
| commit | 9f6f6b7c2be500cef29b6d2ef84c9eec332ff8e1 (patch) | |
| tree | fdcd8b8d2c217961c5e78ba334dd1464094b446a /sys | |
| parent | 85b62edb84393c81196ef559705f4b1be25e10d8 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/sys/bio.h | 5 |
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 |
