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:
parent
f7d97ffdc0
commit
16fac6c92a
@ -501,7 +501,8 @@ g_dev_strategy(struct bio *bp)
|
|||||||
|
|
||||||
KASSERT(bp->bio_cmd == BIO_READ ||
|
KASSERT(bp->bio_cmd == BIO_READ ||
|
||||||
bp->bio_cmd == BIO_WRITE ||
|
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));
|
("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd));
|
||||||
dev = bp->bio_dev;
|
dev = bp->bio_dev;
|
||||||
cp = dev->si_drv2;
|
cp = dev->si_drv2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user