From patchwork Sun Nov 11 19:43:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 10677769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00A2C139B for ; Sun, 11 Nov 2018 19:44:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6EC929D4D for ; Sun, 11 Nov 2018 19:44:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9A9229D78; Sun, 11 Nov 2018 19:44:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50E3729D4D for ; Sun, 11 Nov 2018 19:44:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8E0D26B0003; Sun, 11 Nov 2018 14:44:22 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 89F9B6B0006; Sun, 11 Nov 2018 14:44:22 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 70AEE6B0006; Sun, 11 Nov 2018 14:44:22 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by kanga.kvack.org (Postfix) with ESMTP id 140E76B0003 for ; Sun, 11 Nov 2018 14:44:22 -0500 (EST) Received: by mail-ed1-f71.google.com with SMTP id c8-v6so3637648edt.23 for ; Sun, 11 Nov 2018 11:44:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=OccatetGTx/glbhuf2mbg8G85nfkUdP5vR90q42hGx8=; b=iJ2RUuRVncoraDLLLouTBSnHvC4V+HEgYP+i4q87zuGlOfbxf34C3kI3z8ghLRXncf +sltqFF+pFOVLf9a40BLNOeZnYcLfgWjolH+hj6cZP237ko1hucebr2K95D8PYXE8RMQ KOZjzSJ0+x8OkXgjojsz6Vb07roDq6YgQqtaZXIo7AOBskNeFV75XxrjWx6txw3l4+hC Pwe+dsmjMpegnEr4IR07IpGnNUmNxt0paQ11phLeETD8uUMqCG0GX/zT1iW25duZyStk VOql4ptl1YvCETSNp2BeOxYasTH6LRZHXa0jLzSfGQQcMeN/vgpzs/l5DhNjr1re2IEs sbBw== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of paulmck@linux.vnet.ibm.com) smtp.mailfrom=paulmck@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: AGRZ1gL7fF4hn2c4fgz9Y3aq9/4NPxTIRAvVPIY31vc53gU/wRHB/4Om nmwGgSyEF4vkiCqqr+9832xXVJoAge4Q7oVOj9SC8sH7B0ST4aDJmvz/y/VmcWlB/BLZPS/K9eA rdKxAwNyMbbeZIZXKvd/imiw4X4XTAfwYT0x2EoeX1jbTDXwtdmWa7zKiMSNUGkY= X-Received: by 2002:a50:97d1:: with SMTP id f17-v6mr9288944edb.27.1541965461298; Sun, 11 Nov 2018 11:44:21 -0800 (PST) X-Google-Smtp-Source: AJdET5cGoWitG5bNS51WjufmDHK+z8+urV3Izn0FbRDz/gNuLSI/LZZdBScRsWJQqwFVtyb1mUMR X-Received: by 2002:a50:97d1:: with SMTP id f17-v6mr9288925edb.27.1541965460515; Sun, 11 Nov 2018 11:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541965460; cv=none; d=google.com; s=arc-20160816; b=FaQNSq98aKegVFeOJmqnjTENWlUT9sAu4jECE0SK5MTyMIHwTc53rwGnPIRpMUMxBO qZ6mIfwva67sqlHvF9IlIE37i6iCboccCiH4fFi/c/TuTMiNmOQ4wxKQMhDbC4CzqkUk nYqfXFYOAQXaKFD2P6mM4iCouyaVKUShjoObn8PrUkWfkeMiquM+tV5BvtopWFiEof6a a1O3i5JQoq6BHI6hzbDuG5bqrhkxS+o1xHF3cZqj0hxC3pKv2usj7j4OehjeBpCrBWrF gbkCpMQseZHSGjq4KAP4ty8SiFChywaoNp1yXcDCRFjXsSu8chSf36QTOQIkUA6slsBx N4sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from; bh=OccatetGTx/glbhuf2mbg8G85nfkUdP5vR90q42hGx8=; b=nc5R3Q3nE4yfYPgPKfHgTQODMDzcTyDgXHJWwqK4A9RijAkiT9FioW78/n+pAN569T g4PtmPWWyUg+wVll6lajOYweOY61FhuEiwXsX9OIwqvWfLaUw+jcLa83PfLSTpEYQTE9 vjW7pAy5lS+wV1OUND4PJzCS+rL0BeyzXNXZ9M4ndYL5DxccvQ1nWwzXumiF8nnUvF7a T74/9mvJEq2D8elMs1ra9aREWVkAdSvWXAF5ocNxp0BOvR+ys8Nl96Pg3FlB8B9n10tR ESfX33NY1MFUYBDpvFXh2Kd5sc7P98wR+xrhfTTWPogYBA4YRnpdDHHIy6qvxm8QfK+q fTaA== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of paulmck@linux.vnet.ibm.com) smtp.mailfrom=paulmck@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id c17si2017017edn.441.2018.11.11.11.44.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 11:44:20 -0800 (PST) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of paulmck@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of paulmck@linux.vnet.ibm.com) smtp.mailfrom=paulmck@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wABJi99E168543 for ; Sun, 11 Nov 2018 14:44:18 -0500 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0b-001b2d01.pphosted.com with ESMTP id 2npdfdhh9p-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 11 Nov 2018 14:44:18 -0500 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 11 Nov 2018 19:44:18 -0000 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 11 Nov 2018 19:44:14 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wABJiD7p40632332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 11 Nov 2018 19:44:13 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 34387B2071; Sun, 11 Nov 2018 19:44:13 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1361CB2066; Sun, 11 Nov 2018 19:44:13 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.207.24]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Sun, 11 Nov 2018 19:44:13 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id D7C9216C5DAB; Sun, 11 Nov 2018 11:44:12 -0800 (PST) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: 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" , linux-mm@kvack.org Subject: [PATCH tip/core/rcu 19/41] main: Replace rcu_barrier_sched() with rcu_barrier() Date: Sun, 11 Nov 2018 11:43:48 -0800 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181111194104.GA4787@linux.ibm.com> References: <20181111194104.GA4787@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18111119-0052-0000-0000-00000354224B X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010028; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01116019; UDB=6.00578733; IPR=6.00896119; MB=3.00024114; MTD=3.00000008; XFM=3.00000015; UTC=2018-11-11 19:44:18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111119-0053-0000-0000-00005EBB219B Message-Id: <20181111194410.6368-19-paulmck@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-11_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811110188 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Now that all RCU flavors have been consolidated, rcu_barrier_sched() is but a synonym for rcu_barrier(). This commit therefore replaces the former with the latter. Signed-off-by: Paul E. McKenney Cc: Andrew Morton Cc: "Steven Rostedt (VMware)" Cc: Thomas Gleixner Cc: --- init/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init/main.c b/init/main.c index ee147103ba1b..a45486330243 100644 --- a/init/main.c +++ b/init/main.c @@ -1046,12 +1046,12 @@ static void mark_readonly(void) { if (rodata_enabled) { /* - * load_module() results in W+X mappings, which are cleaned up - * with call_rcu_sched(). Let's make sure that queued work is + * load_module() results in W+X mappings, which are cleaned + * up with call_rcu(). Let's make sure that queued work is * flushed so that we don't hit false positives looking for * insecure pages which are W+X. */ - rcu_barrier_sched(); + rcu_barrier(); mark_rodata_ro(); rodata_test(); } else