From nobody Wed Feb 23 10:59:28 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 27AD419DD274; Wed, 23 Feb 2022 10:59:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3Y2T0bGXz4qns; Wed, 23 Feb 2022 10:59:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645613969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WfOzpsU8x81bWj27MCEkvJkDI6jQUty7M/P77XMhOHs=; b=DGJ9FFXW2e3l+6hZ+bJvxFvAQHF94n5Pr5xb5aetLKMED7yyKvetS2DwsYXRo+RX9e4fPs uEcsJMC8nZLzzjnLrBFEjdLkYn1yD2Vb7CVyHOy9VIbD8NqgCQsP8Qa/eKv6ilMhscg2Mg FAxoanTKEntpluMRoYwezIZkeBjFj8tvkg+QHnYceqPuSHekiHyFqvJut6dUw73PO888wL LQ1qcdGVjfQ7qxdBgwut+/OoXKRoPDTgYdO3eFY51EVUFDzKSxyL1F1DE7v7JM8I4abKT2 s7Tvd9cksSKaG3h8odQDNMDvaWZ4Dg/gPgkeGGdIrI5ZRyBrCCOdQEpaktyTew== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E44881710D; Wed, 23 Feb 2022 10:59:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21NAxSec038744; Wed, 23 Feb 2022 10:59:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21NAxSbC038743; Wed, 23 Feb 2022 10:59:28 GMT (envelope-from git) Date: Wed, 23 Feb 2022 10:59:28 GMT Message-Id: <202202231059.21NAxSbC038743@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Aleksandr Fedorov Subject: git: f40063d32977 - stable/13 - md(4): Add dummy support of the BIO_FLUSH command for malloc and swap backend. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: afedorov X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f40063d329775a7c7bdac90afd261b683ad2fec3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645613969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WfOzpsU8x81bWj27MCEkvJkDI6jQUty7M/P77XMhOHs=; b=LiMUIi2Pe2zlQ2lsVADYTxKToi1loZY9HKQ09UAfqjG9BrmbQikmDBXj9x1DItfoD4c37p ov7wSzAtOnUvRRyziyQZmy6c20p75YvMhiP+nAUjci8oslxi9keIC8oOXLpkGHiLnQGqbR vHd5Brga1ENP0VFfa17Ig6m9tZ8UWlzLWH6xgp5aDexyCHMsjdZAZV3ayib8+9MLm71U2b hJ286LseufaA/vK88G13Mu9r/OfwsOyZyceim8/lNf54UfK32LsIuTFlytuuY4WxGAnKjV JNBBsj6zGePVU2LVapaZJlrPo6B7igRsaa6LkaMLfz8kCiyPL+LLiOfuiFTnVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645613969; a=rsa-sha256; cv=none; b=IB7mxUOEwmpPRA88UC4rlglXHJe/A6XIBOex600GUP3q3xrCZjwBekE5GbiQo1fy0xTd/R 73lKG9ObAko8Pqaj6AMCmWAQ2zTQ/hGrDeVVQAmXRJMiSsC552geDazXeENRXuozLSYMEn wCVynU7l1oBT1hgU8CJiF9LIe2iAdcPT3umGbrHoJxLPYUs4Vdu733+NigoAkKTE9ED53t XAok6HHbYRvl5ffLdkHhu2SaZtNcnH9rbfWjHW69xmLi0fkyVXtjPWth/nXbvNbuaWJync vL1oOMUD/eh0Ogqx3zzvX3q+TdOPoLlttiB92ac8SZBaxKB57CQCSyaRnyHYZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by afedorov: URL: https://cgit.FreeBSD.org/src/commit/?id=f40063d329775a7c7bdac90afd261b683ad2fec3 commit f40063d329775a7c7bdac90afd261b683ad2fec3 Author: Aleksandr Fedorov AuthorDate: 2022-02-17 19:21:56 +0000 Commit: Aleksandr Fedorov 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); }