diff options
author | trasz <trasz@FreeBSD.org> | 2013-04-06 10:32:06 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2013-04-06 10:32:06 +0000 |
commit | 249764dd66251ac0382f8f102cacbb4ecb012195 (patch) | |
tree | 1d64231351c6f941c10b3cc47825ae150d61b43f /sys/geom/geom_dev.c | |
parent | 5c569533aa1674bf866556c9dcb9b9ff376d65be (diff) | |
download | FreeBSD-src-249764dd66251ac0382f8f102cacbb4ecb012195.zip FreeBSD-src-249764dd66251ac0382f8f102cacbb4ecb012195.tar.gz |
Make it possible to submit FLUSH bios through geom_dev strategy. This
is required for CTL to work with device-backed LUNs.
Reviewed by: mav
Diffstat (limited to 'sys/geom/geom_dev.c')
-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; |