[Bug 260200] AHCI emulation throws CAM errors when backed by -t malloc memory disk devices
Date: Sat, 12 Feb 2022 11:53:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260200 --- Comment #3 from Aleksandr Fedorov <afedorov@FreeBSD.org> --- Second way: diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 308374f49f14..affb0780fa4a 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -643,6 +643,9 @@ mdstart_malloc(struct md_s *sc, struct bio *bp) case BIO_WRITE: case BIO_DELETE: break; + case BIO_FLUSH: + bp->bio_resid = 0; + return (0); default: return (EOPNOTSUPP); } -- You are receiving this mail because: You are the assignee for the bug.