Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3384776pxk; Mon, 28 Sep 2020 16:35:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCbho3vDrTQ2I12YUkDCNjRmxhDMjKem7lCEGrMwLkYIR+HOZB4rhuJY9Q9U0Fn5Dp9uW0 X-Received: by 2002:aa7:cb83:: with SMTP id r3mr391415edt.35.1601336110593; Mon, 28 Sep 2020 16:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601336110; cv=none; d=google.com; s=arc-20160816; b=MhfLyTmxQqJB4QYcK3wLR86sRg04HIMwXno+/m76z8b0O1Zv6eZvrEcOYxoNV3Ih90 XNgnELWqJB7Z7uxuzLq9Ky3LCZRX+kXGEBmmDku5DqLDypY9hW7e2bb+AmC5yo7VF59B Kxu/mAoy4bVCGf0CBKp9sM2u/DPmAdBVGvJTt8yof2tJeJYmJaavAh343yobsh+XR2SB cNYNukzhxRZ8iIPYVFTQaLSU5ew8CWeSK0mHAq/+nSJT+YfnLxyPxRgGnuENYXKIKZBe +nRkHKpujhrXRvjqefdpuJWX6988dr5T+V5nkUwptUq3kOvJIc6MHQdzrjk4atKZJegq ZiJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=l6iRif0Wt/hTuYEyejZL3iij8B0ST+e8UuXJ9zp+gjs=; b=IK4Fvor6Z6BiuDmvDAthjJSAawU4RcWwoBSHwd6c10L+gpf4hB9xFKiXRFaTK79Vph Iyc5+GFStZ5jLx+gPcYCC12hN+q1jeAF+vmP9E33+EX02ZL9eWv+2QJQ0vz/4+OZR61/ qnl+5VifHnOA+0/rnulZmBD5GUT0c+uNr7cwqir/udOL1TB7SNW5yJ4yhIePT4h1fmJW r6TlvHv3UfCCOyNJzrKO1vFe1aIsvZVmJRsz+96byVV/fR8ffRwjoJpd+ayVtZIHArht GcVLWSe1Sl8UH3FnKLerQpzjnhK60nV2cR2QHzNdrpKCR10dydOoVywyjcF6WAiKMjub ETBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NZrETDKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l19si1600726edq.264.2020.09.28.16.34.34; Mon, 28 Sep 2020 16:35:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NZrETDKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727375AbgI1Xbs (ORCPT + 99 others); Mon, 28 Sep 2020 19:31:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:54416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727217AbgI1XbG (ORCPT ); Mon, 28 Sep 2020 19:31:06 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.45.173.55]) (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 CBD8D22207; Mon, 28 Sep 2020 23:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601335865; bh=fkNNUvYgKzjsGWy+k183GC6Ic/RauTWroHJP3SB9FMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NZrETDKN9cjLPUpqfcBm6C+OCQgHH6Wy2jIBL+PvB3Qi5aH2tWBj4YV7lD83FEelB ux+UxTSXXrI70YaideL95Zvz54uqVEKX22jsVWgr2hZBqVQqQb0gdT5ZrENcIMapPe Ly1bAggQa/UUh9rpEIIWOrHkXb59JJEKmnXbukWI= 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, 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, mhocko@kernel.org, mgorman@techsingularity.net, torvalds@linux-foundation.org, "Paul E . McKenney" Subject: [PATCH tip/core/rcu 07/15] uaccess: Cleanup PREEMPT_COUNT leftovers Date: Mon, 28 Sep 2020 16:30:54 -0700 Message-Id: <20200928233102.24265-7-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20200928233041.GA23230@paulmck-ThinkPad-P72> References: <20200928233041.GA23230@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Signed-off-by: Paul E. McKenney --- include/linux/uaccess.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index 94b2854..b79a5a9 100644 --- a/include/linux/uaccess.h +++ b/include/linux/uaccess.h @@ -230,9 +230,9 @@ static inline bool pagefault_disabled(void) * * This function should only be used by the fault handlers. Other users should * stick to pagefault_disabled(). - * Please NEVER use preempt_disable() to disable the fault handler. With - * !CONFIG_PREEMPT_COUNT, this is like a NOP. So the handler won't be disabled. - * in_atomic() will report different values based on !CONFIG_PREEMPT_COUNT. + * + * Please NEVER use preempt_disable() or local_irq_disable() to disable the + * fault handler. */ #define faulthandler_disabled() (pagefault_disabled() || in_atomic()) -- 2.9.5