diff options
-rw-r--r-- | sys/geom/geom_dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 81dfd9f..3185933 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; |