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:
Edward Tomasz Napierala 2013-04-06 10:32:06 +00:00
parent f7d97ffdc0
commit 16fac6c92a

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;