From nobody Thu Feb 17 19:25:08 2022 X-Original-To: dev-commits-src-main@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 A199C19C7CDC; Thu, 17 Feb 2022 19:25:08 +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 4K04Xh43Vsz4rqc; Thu, 17 Feb 2022 19:25:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645125908; 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=lc1RIQhVCQ48iUiV6/GdJ/PlzATy9NvxFQiXUl/Ape4=; b=ovs3K3tBLCxcPsQomz9haK13VY4Ti4Jjo0Vq0W3VYvReEhXKPH1tNSqWUrVSwdEKiWzXmv KPoYVzwxrnENacv5pR2KeZxEQFch+Xwqc0Jg71YVPCxGw1reCMowAlAbjlEH3wXR8H78wa 5D4za/Rfj4wAAhKH5YdJ5zEp3ai0craLh8F1+C3DZGpPiO68OWjB1Nq/MAlD7eJbVTi7LR hEW0VKJfQmOXJU3Pe9hp78indZ/7XRRhP6CfxQ00o26ICBu6s9OG8+/bxNAZdrVXN51vYx A6SxX8UfY7YpmY/+wzLsQFau+gkyJnj4//ofo+SdRC8LvSuZmvBaSfM12wyIgQ== 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 668497565; Thu, 17 Feb 2022 19:25:08 +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 21HJP8k2004414; Thu, 17 Feb 2022 19:25:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21HJP8eR004413; Thu, 17 Feb 2022 19:25:08 GMT (envelope-from git) Date: Thu, 17 Feb 2022 19:25:08 GMT Message-Id: <202202171925.21HJP8eR004413@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Aleksandr Fedorov Subject: git: cb28dfb27d12 - main - md(4): Add dummy support of the BIO_FLUSH command for malloc and swap backend. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: cb28dfb27d12f1cbd7831f370c01493c01d74b10 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645125908; 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=lc1RIQhVCQ48iUiV6/GdJ/PlzATy9NvxFQiXUl/Ape4=; b=lHt6ahGzIO5Kjn7JfuHp01k6+OMbKwv3VmuUNmAzf6fDwrhb2eugs38x/wt1YEHRpEpEd3 0OJnJaDQIALTWmjL67+UdVmIuSQKC7Vit4nAyuPHvxbfk2umOi1qU/jr2pBE7ETV3cyILt Zi0JZNgxTIeDoMGGlN6UXF2NDNOFG5aZjYQZHPzH0K9x9usRU3pXFIasMLUvUatDce+Qk1 n0JhkegCyjUSqMLzzn0DSI7GB16Yu+6K5wdba4G3T1/FWeNhMUBq6FfeJ2vEZfQCop5Gqc WgrcAKUiFh1lu2rgdqZrh0U3Cs/ea09PkQIlhon1fsy0HhhbuCAIVyF8mT8pvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645125908; a=rsa-sha256; cv=none; b=EJKI7Mpr+M/5iQ/Tw516RRO+Gy8axBcEjQR0kwKGFvQNufoZsQlf6u79X8moGfgAOvQRzX mwIObgnBE2D5WZ0m16wWHt4m5EtSivPW1uN9Sjx2t736jqXW3WrhpSJNn4ORAPnecMOD1h w93BTWFW5kB3VZDrxAoEdo8jTO63pBU+RXaoC8d2au6Yj6XLwqSoXxy4r9WqnulHNUMGvC +G+ztovpJcBHXJxVa90m4MvCQaed99vhyysmzhFqwfDaz/WDfUT5P00d/fHV4yWs4/0M2Y HO9oNDvcICku8zA/Rk6k+7JStuX5KqZ99PwE7DyJ9nAzAFBkv0SHO8krtdbhdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by afedorov: URL: https://cgit.FreeBSD.org/src/commit/?id=cb28dfb27d12f1cbd7831f370c01493c01d74b10 commit cb28dfb27d12f1cbd7831f370c01493c01d74b10 Author: Aleksandr Fedorov AuthorDate: 2022-02-17 19:21:56 +0000 Commit: Aleksandr Fedorov CommitDate: 2022-02-17 19:21:56 +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 --- 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 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); }