Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp797700ybh; Thu, 12 Mar 2020 11:18:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvaniO3jzWpIE2bj9ylBU57anqXGTDIUSsqItPIS+oSt8P9GJ2vJT3J14N5HxEa/11jtyru X-Received: by 2002:a9d:4c99:: with SMTP id m25mr1034582otf.187.1584037099624; Thu, 12 Mar 2020 11:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584037099; cv=none; d=google.com; s=arc-20160816; b=YCWxa+UWFDOhe4LNY1DR+uktFhqCyqRA4CmgY+4w5dTQIoZjvEQoEdHDPTZ/xgrVRO OezmxRuLWHyX6QPu8T/AlW/kgOl/EqLd3Pp/dKHkLdabZSZY+5+hXo7i7owSagsPPbow 5j9bGkntmqROZmSDNxvwoF6ZjNToDCakp6XAgEPFBpZfn7ceNzvGjTRbCuRYFD/eIZdo VWjRD27qcnxknDSkCr8ChFfC+cYKKYuNmCaI57adwptVZK6ia93Lh86tU/Sp+2NnhdCX ZI7ggTEvrAyz6SI4sbNS6eCzwckWOPIRiAoZjZfK3loOkE3biX0pcjB3m666v8BdYEax bTJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=6eVlSWpy0cdqnLiTDj7CCTqnf9ILzw8lE/yCDhZvNj0=; b=fRn7zhgIdZNTG6NxTyGZwf1kH/NIMc3EuoyY90UEPclhWY9jcvZS3MWbwjovcVRZa/ kGaHFPF/QUHEkJwBqWdXczNIatbhd71+1jafLrmWHrzSZpCMkqNWSt72DCd3AoSd/c23 HhwcN8837WHtKkd3/ixeE2InChs66jURUEba/Dy2Ct52589eQUGVu+XN6szLTb61QaF1 AJh1M95PUa/dnG7jG8Wc79ZDnb0DLzAVgYNsrGyYSckq53P/jSfBSC/jrWs7RMiUDYGv YB637PpPAwew9/DKhk5cqLMXHAGeyjCsP7tnoeqlgV5ur6r8NPkLvmGQM/CbD7fdMwYf F0cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mFeNy9xf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n21si2938359oic.0.2020.03.12.11.18.07; Thu, 12 Mar 2020 11:18:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mFeNy9xf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726780AbgCLSRL (ORCPT + 99 others); Thu, 12 Mar 2020 14:17:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:52112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgCLSRH (ORCPT ); Thu, 12 Mar 2020 14:17:07 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C67732074C; Thu, 12 Mar 2020 18:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584037027; bh=5ghqwCmdCSHbQ1IepHyUQH5Oidbtajjt7LKGKmB8D/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mFeNy9xfhxV0BWOWq/VQwRpux53zdDDdsAMv1cbm4bHvrWMa/8rU3xE0dw8oknnbN hpdx/idxlCfmh++QcxxvXfzPAzSIMnR1B1jCFDMpv3AqsLYmVf7vGSiLap7nGjo/e/ c/pFeaIizHSWDkBvHaeh3OBd5X9lPltNDJfabElI= From: paulmck@kernel.org To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, "Paul E. McKenney" Subject: [PATCH RFC tip/core/rcu 07/16] rcutorture: Add a test for synchronize_rcu_mult() Date: Thu, 12 Mar 2020 11:16:53 -0700 Message-Id: <20200312181702.8443-7-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20200312181618.GA21271@paulmck-ThinkPad-P72> References: <20200312181618.GA21271@paulmck-ThinkPad-P72> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Paul E. McKenney" This commit adds a crude test for synchronize_rcu_mult(). This is currently a smoke test rather than a high-quality stress test. Signed-off-by: Paul E. McKenney --- kernel/rcu/rcutorture.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index f75d466..1880c5f 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include @@ -666,6 +666,11 @@ static void rcu_tasks_torture_deferred_free(struct rcu_torture *p) call_rcu_tasks(&p->rtort_rcu, rcu_torture_cb); } +static void synchronize_rcu_mult_test(void) +{ + synchronize_rcu_mult(call_rcu_tasks, call_rcu); +} + static struct rcu_torture_ops tasks_ops = { .ttype = RCU_TASKS_FLAVOR, .init = rcu_sync_torture_init, @@ -675,7 +680,7 @@ static struct rcu_torture_ops tasks_ops = { .get_gp_seq = rcu_no_completed, .deferred_free = rcu_tasks_torture_deferred_free, .sync = synchronize_rcu_tasks, - .exp_sync = synchronize_rcu_tasks, + .exp_sync = synchronize_rcu_mult_test, .call = call_rcu_tasks, .cb_barrier = rcu_barrier_tasks, .fqs = NULL, -- 2.9.5