git: f40063d32977 - stable/13 - md(4): Add dummy support of the BIO_FLUSH command for malloc and swap backend.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Feb 2022 10:59:28 UTC
The branch stable/13 has been updated by afedorov: URL: https://cgit.FreeBSD.org/src/commit/?id=f40063d329775a7c7bdac90afd261b683ad2fec3 commit f40063d329775a7c7bdac90afd261b683ad2fec3 Author: Aleksandr Fedorov <afedorov@FreeBSD.org> AuthorDate: 2022-02-17 19:21:56 +0000 Commit: Aleksandr Fedorov <afedorov@FreeBSD.org> CommitDate: 2022-02-23 10:57:44 +0000 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 (cherry picked from commit cb28dfb27d12f1cbd7831f370c01493c01d74b10) --- sys/dev/md/md.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index de0cc9626954..f44a2e940faa 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -644,6 +644,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); } @@ -1033,6 +1035,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); }