From nobody Fri Jan 28 16:32:34 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 03A92198A4E4; Fri, 28 Jan 2022 16:32:35 +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 4Jljfp6k5Fz3Krj; Fri, 28 Jan 2022 16:32:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643387555; 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=YlfTC65nrGzJwDZUahQoUJ/HWjI9ezeFcb1bceKwnlI=; b=S0Ga2vN7+ddwzUK/7D2v/5GWeabFV+A5ddkVM/BIXlm7e72ms//lSLAYbDOBKgLn/RpmAw dnE2kFF2ZgX7Y4JTqHsk8RRNnz9L9C3r97dXg65KTMMIBwWKk5b6EYOY2wqhLMg/mNL4Gw dPHmb5V8aonEkMqrkEVZTC/U5KlIXSLmmrCZ1HH1sR9FlWhh87Po78OlZq1ay+7vvfrYu2 R1PddNPbUqjsVO9LZgx/Orr3f3baYQZF3/qzMb0t8qmB6fEakFRryR7jbioXCFzTwg7Tkx P9nG0m2ToKEzu3EWWo54VwT+Kisr/MJr8G+miHWA/Z7mLipGF2SqKuCwzBILBw== 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 C6BF22D697; Fri, 28 Jan 2022 16:32:34 +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 20SGWY3J042815; Fri, 28 Jan 2022 16:32:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20SGWY22042814; Fri, 28 Jan 2022 16:32:34 GMT (envelope-from git) Date: Fri, 28 Jan 2022 16:32:34 GMT Message-Id: <202201281632.20SGWY22042814@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: 0d8cec7658d5 - main - graid: Set G_CF_DIRECT_SEND for task consumer. 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: mav X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0d8cec7658d50e4190899376330c2c1eb5d8c659 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643387554; 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=YlfTC65nrGzJwDZUahQoUJ/HWjI9ezeFcb1bceKwnlI=; b=MNSsO8Zg3chYP/4CQxi6yJVSbhLfUUe+Eu5RKNA4epkFMegRjfQ6oNcex43fvYx4JALA2R u6+3ahtOme2J2eEmruX3Th1BxTHTHtiujIY8Oqm6rMwDMYOcJaFvJwLu2vM2h2nk/238h0 cGW15vZXtXd4hMcj97iZ9cEobWx0mflCaXDQMILIIKItMtgkVX+2UcQCsY1JTiSNQ1gVdq go0aDPZFb4S9Wq4qXbBIs7LzkcPsNC7c6vn2aTcv/Y7Y9ZJAD/BTUF9RZorkv8jbL059iQ CGe+THlZo51FoqgmfnB5zN28Fau3D2xXpcAbMEtga5jqUEMjGENszu2y++L4eg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643387554; a=rsa-sha256; cv=none; b=I377UQf6fdnbTX+op2buDLqiLPDEojiJS7fOesyFNTQOpQuohKM7Goey7fG9k+yz4IM8zN tGHyYrfqUGkMBGqDdBvJfxE1DLB2O/fArkB027EHiw9VdqsBm8JSWGxFeL1heg9wQjvOJK pxAPhkcXaA4LLCry3vK8yBzi7l7xlc0ZPCs74WQX6Eg26GagygIY4n1ilMcSrnWxxFwj7p 4ggno39cAYlhs2mJFU5Xmhfn/RTUygu6lsPiYHQDmW/m/Jzr6EQskgdq7hCj6EP8ZSKPlr w/vukEirlEa4X6FMG6T0OLTrDsydC1c7fN2qcakkCa2DuBD6OrUlCzEOIXduWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=0d8cec7658d50e4190899376330c2c1eb5d8c659 commit 0d8cec7658d50e4190899376330c2c1eb5d8c659 Author: Alexander Motin AuthorDate: 2022-01-28 16:09:30 +0000 Commit: Alexander Motin CommitDate: 2022-01-28 16:09:30 +0000 graid: Set G_CF_DIRECT_SEND for task consumer. Unlike normal consumers all taste consumer I/O is synchronous, done with g_read_data() and without any locks held. It makes no sense to delegate I/O submission to g_down thread. This should remove number of context switches during disk retaste. MFC after: 2 weeks --- sys/geom/raid/g_raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/raid/g_raid.c b/sys/geom/raid/g_raid.c index 807cca5b7e50..fc5852d28fd7 100644 --- a/sys/geom/raid/g_raid.c +++ b/sys/geom/raid/g_raid.c @@ -2227,7 +2227,7 @@ g_raid_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) */ gp->orphan = g_raid_taste_orphan; cp = g_new_consumer(gp); - cp->flags |= G_CF_DIRECT_RECEIVE; + cp->flags |= G_CF_DIRECT_SEND | G_CF_DIRECT_RECEIVE; if (g_attach(cp, pp) != 0) goto ofail2; if (g_access(cp, 1, 0, 0) != 0)