aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/md
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/md
parent76e03cc940fed57d580b1d5c0605e8af2e14f05b (diff)
downloadsrc-cb28dfb27d12f1cbd7831f370c01493c01d74b10.tar.gz
src-cb28dfb27d12f1cbd7831f370c01493c01d74b10.zip
md(4): Add dummy support of the BIO_FLUSH command for malloc and swap
backend. PR: 260200 Reported by: editor@callfortesting.org Reviewed by: vmaffione (mentor), markj Approved by: vmaffione (mentor), markj Differential Revision: https://reviews.freebsd.org/D34260
Diffstat (limited to 'sys/dev/md')
-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);
}