aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2013-04-06 10:32:06 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2013-04-06 10:32:06 +0000
commit16fac6c92ad20969b327d2a6a407ccdf2b8c876b (patch)
tree1d64231351c6f941c10b3cc47825ae150d61b43f
parentf7d97ffdc004b5409c93b4e69f83a7dc29a536c8 (diff)
Notes
-rw-r--r--sys/geom/geom_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c
index 81dfd9fc1c2e..3185933dec9b 100644
--- a/sys/geom/geom_dev.c
+++ b/sys/geom/geom_dev.c
@@ -501,7 +501,8 @@ g_dev_strategy(struct bio *bp)
KASSERT(bp->bio_cmd == BIO_READ ||
bp->bio_cmd == BIO_WRITE ||
- bp->bio_cmd == BIO_DELETE,
+ bp->bio_cmd == BIO_DELETE ||
+ bp->bio_cmd == BIO_FLUSH,
("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd));
dev = bp->bio_dev;
cp = dev->si_drv2;