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
This commit is contained in:
trasz 2013-04-06 10:32:06 +00:00
parent 5c569533aa
commit 249764dd66

View File

@ -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;