aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAleksandr Fedorov <afedorov@FreeBSD.org>2022-02-17 19:21:56 +0000
committerAleksandr Fedorov <afedorov@FreeBSD.org>2022-02-17 19:21:56 +0000
commitcb28dfb27d12f1cbd7831f370c01493c01d74b10 (patch)
tree412cf34c5865d5fcabcd088e00b610301d9ecf41 /sys/dev
parent76e03cc940fed57d580b1d5c0605e8af2e14f05b (diff)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/md/md.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index bd83345d8e37..29dabbdf9d4e 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -646,6 +646,8 @@ mdstart_malloc(struct md_s *sc, struct bio *bp)
case BIO_WRITE:
case BIO_DELETE:
break;
+ case BIO_FLUSH:
+ return (0);
default:
return (EOPNOTSUPP);
}
@@ -1026,6 +1028,8 @@ mdstart_swap(struct md_s *sc, struct bio *bp)
case BIO_WRITE:
case BIO_DELETE:
break;
+ case BIO_FLUSH:
+ return (0);
default:
return (EOPNOTSUPP);
}