From patchwork Fri Oct 9 17:01:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thermal-bot for Julien Panis X-Patchwork-Id: 11826827 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D9159109B for ; Fri, 9 Oct 2020 17:01:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9C9AB22265 for ; Fri, 9 Oct 2020 17:01:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uqPQ0lq9"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="tsyJjwYX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C9AB22265 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8E2C36B005C; Fri, 9 Oct 2020 13:01:32 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8917E6B0071; Fri, 9 Oct 2020 13:01:32 -0400 (EDT) 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 7CE416B0073; Fri, 9 Oct 2020 13:01:32 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0062.hostedemail.com [216.40.44.62]) by kanga.kvack.org (Postfix) with ESMTP id 51EA76B005C for ; Fri, 9 Oct 2020 13:01:32 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id DDEAE8249980 for ; Fri, 9 Oct 2020 17:01:31 +0000 (UTC) X-FDA: 77353003182.27.tray90_4a066d0271e2 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id C1FC83D668 for ; Fri, 9 Oct 2020 17:01:31 +0000 (UTC) X-Spam-Summary: 10,1,0,ee4d51d912fcd384,d41d8cd98f00b204,tip-bot2@linutronix.de,,RULES_HIT:41:152:355:379:800:904:960:967:968:973:988:989:1260:1277:1311:1313:1314:1345:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2559:2563:2682:2685:2693:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3866:3868:3871:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:5007:6119:6261:6653:8957:9025:10004:10400:11026:11232:11473:11658:11914:12043:12160:12296:12438:12555:12679:12740:12760:12895:13069:13161:13229:13311:13357:13846:14181:14721:21080:21365:21451:21611:21627:21889:21966:21987:30054:30090:30091,0,RBL:193.142.43.55:@linutronix.de:.lbl8.mailshell.net-64.201.201.201 62.14.6.100;04yrdeea3o5a7wztcwyfkskj4wh5sopnp3im7jggecreifrab8s1b64byw45r7t.1unpg4hwhzb7a4ceij8or7fweeapijdiw5b9oixaw83zqkqmtbiog5g37f8x1w8.n-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF :not bul X-HE-Tag: tray90_4a066d0271e2 X-Filterd-Recvd-Size: 3666 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Fri, 9 Oct 2020 17:01:30 +0000 (UTC) Date: Fri, 09 Oct 2020 17:01:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1602262887; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DsUXCFgB0t8Uz1s66Xv3x9K3h5PRL9+85GNO1gQyCNw=; b=uqPQ0lq9j159dwjEitmbe3g3lMgvIvEjwtLwA/ttHqk4wHgdPKaSOScbJabe2VyKa3tpr3 HlCaU0ZiMW6i/OC0V+QqzLnZcHPJVQIl2bx4/LPQjGazo5jpIqaKCLcT/ClcTT+yb/FJfc 8KRxyE1g+Y51M+jwNnVcorDpN7TzFTa1G/5aKzaCVK/blAxWHHHFAHbUncgphngKczMrWS ZVFqwKVFXFAKVYiH3riOwoof75KGutyBSd8LLxop9gInIeP0yE7gVinf1+OSaaiN94kuFr tpaPL7j+JlRED9hIe+h4Yqu1uUaYsMNuukUW9eK+3caTmF/so6z6fcXyDDm+CA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1602262887; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DsUXCFgB0t8Uz1s66Xv3x9K3h5PRL9+85GNO1gQyCNw=; b=tsyJjwYX+hZAptY3Vdx0hr6DroEAXAq4MekM8lAnKONvUELxb6KIaD+GYLAWr0IzN1F/dk Ef3w0E+2kWmi6qCw== From: "tip-bot2 for Thomas Gleixner" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/rcu] mm/pagemap: Cleanup PREEMPT_COUNT leftovers Cc: Thomas Gleixner , Andrew Morton , linux-mm@kvack.org, "Paul E. McKenney" , x86 , LKML MIME-Version: 1.0 Message-ID: <160226288705.7002.3287677624087065789.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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: The following commit has been merged into the core/rcu branch of tip: Commit-ID: 1aba898d50dd0dc18d418bf66b2eea0028b2fbd6 Gitweb: https://git.kernel.org/tip/1aba898d50dd0dc18d418bf66b2eea0028b2fbd6 Author: Thomas Gleixner AuthorDate: Mon, 14 Sep 2020 19:25:00 +02:00 Committer: Paul E. McKenney CommitterDate: Mon, 28 Sep 2020 16:03:19 -07:00 mm/pagemap: Cleanup PREEMPT_COUNT leftovers CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Andrew Morton Cc: linux-mm@kvack.org [ paulmck: Fix !SMP build error per kernel test robot feedback. ] Signed-off-by: Paul E. McKenney --- include/linux/pagemap.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 7de11dc..b3d9d92 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -168,9 +168,7 @@ void release_pages(struct page **pages, int nr); static inline int __page_cache_add_speculative(struct page *page, int count) { #ifdef CONFIG_TINY_RCU -# ifdef CONFIG_PREEMPT_COUNT - VM_BUG_ON(!in_atomic() && !irqs_disabled()); -# endif + VM_BUG_ON(preemptible()); /* * Preempt must be disabled here - we rely on rcu_read_lock doing * this for us.