From nobody Fri Feb 11 01:10:37 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 860E019A6395; Fri, 11 Feb 2022 01:10:38 +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 4JvwXZ1B7Mz57bl; Fri, 11 Feb 2022 01:10:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644541838; 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=OFy+YNgTRJjw6PPCWSvEu2Saf+Z9oDWtizHTE5hQJm4=; b=PsIDvi+rsbLlriwiWgAPwS0wmI+V496nX4I0++89WXFJyxZaLppUTDpGV7m5krXFS0ROsR CrU+JiU8FKs1h220hNwM7IlHYthL6eglviIfeJBGwB573PWI7OgPMz6zOAT1myUwtAProd hfajqLz4527g7TRibuUjkzwLq3APO/g+NC4dEOhAPkxsKA/ORf0f3YSUbh0kpuZzbmW1WZ 8ls2I5/kqS2CAFViY7v1q3llS/GympnLU8qNs70r1DLcyG5C9aRrCNsyzHYn/XDZ3t7hk5 gaHtzGFEGRnKQu19n8KkxutCYwZdoiIaiKFzNHsWErTQOW1Vc6u32gBoMqSWvA== 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 E1DC72E13; Fri, 11 Feb 2022 01:10:37 +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 21B1AbYg073513; Fri, 11 Feb 2022 01:10:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21B1Abqn073512; Fri, 11 Feb 2022 01:10:37 GMT (envelope-from git) Date: Fri, 11 Feb 2022 01:10:37 GMT Message-Id: <202202110110.21B1Abqn073512@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: efb36504c51c - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: efb36504c51c39b2d5900d21bfbf0f73c8e94a2e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644541838; 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=OFy+YNgTRJjw6PPCWSvEu2Saf+Z9oDWtizHTE5hQJm4=; b=sIKxKFwIDDAaXPmCwNXEH06D8+Y3/gbri4hsulElFQJvfUa7ixuv3VMtDKlFKti0Y9QXJ3 7Qptrm6L4gP2Q3JUQdFSe8yuFydTEZQGbwajV69w3itf+TSaAGXWiT6iHrqlCTsPQT5U3j WNsSJ/RKvMze656kWYR0vVHmaSXPE//2UfTvo8nIscYHwkuIgDMmqPvoRk475/qPrxEv5s ozD2zYY+xIUZ3PVBQLVQCVSuWm5q6qDkunCS+E/cj4O/ufOEx1+hNpbJ4pevEkHcNVKUHa a+alGj9qNxS/jMbh1d2qBjpUBKjy3BKtIF+BRbYzUcRm5XPPwanYWVz+Ij5CaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644541838; a=rsa-sha256; cv=none; b=yZnpBFsS5Ruuw4LdUJRj5wRmuNAlEgtWVwIkHOrAFweuFsrMa5uxPTRAPsLlgk8tD8EOBE I05GhM9GnllXN769SAusHfdLheBCet1rYV5AAVOnif7WRBlJsJErT6JBXVE+0i5UPG8Vh1 pHNmeAdNEUL916DB4kScKEniVXRBTurDw5X1LAsoxl0IZBZfq37PFSLcFPsqvkuoVcpfX4 D0SpCVtPBAAGUnQqZgg+tXZWpOPLFGsX8VHNaYB8B43PKwJouksgcRupBwyN6pHQooY/9x EgFD3e7IeYE8BKDBDYk1qWXqQDw4uwZxvw4D7NR0JTZrhT01CotV9OQrSIetBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=efb36504c51c39b2d5900d21bfbf0f73c8e94a2e commit efb36504c51c39b2d5900d21bfbf0f73c8e94a2e Author: Alexander Motin AuthorDate: 2022-01-28 16:09:30 +0000 Commit: Alexander Motin CommitDate: 2022-02-11 00:50:45 +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 (cherry picked from commit 0d8cec7658d50e4190899376330c2c1eb5d8c659) --- 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 31adb0f2b513..d88f1fb316c8 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)