Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1510224imm; Wed, 10 Oct 2018 16:13:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV616wdv7mFNacYq2Kw73zkzB0gncoO07HgXPoM8OfYhn+q67F0cDKDuwb919npCgRYDluRhs X-Received: by 2002:a17:902:bb08:: with SMTP id l8-v6mr33864399pls.252.1539213226491; Wed, 10 Oct 2018 16:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539213226; cv=none; d=google.com; s=arc-20160816; b=YS4z91nugVdd1J8hU+1Jt6kQ11f1ElY2P012f35u+yHG/U58PG0WgQGHyn95oXL8s0 RzVoOkHMXYANdK8/NDj4GfY8GCWPGeJ/+o1wSYvW2diCCYroyx5kXrqnbZrAsm5kovX5 MSuCMvxVASN3LH/J13U+bQy8sdopT3wh2PrLnlbTNml4shHD47ZgodSEPKifyDBckqvc 9MVJ78jKjLRF61a/ILsuCQeN8Sllzfw8uPd67HDK3x6C6/eyWCn1xm/F+nNWL8aYlUlt vuOH+g5YmrTv1eyHJIrIj6Jl/MKNcW57zUv7eAcp9MCDgGpDY5i+prUrTu6tpWLR5vWA P5hQ== 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=G1m/JiM3Cl0QBWr4BZkmHOmAU1hOI6FZtcwNFl5m2l0=; b=YrIyp/u/2WSeA8elwhhYR7RzXqO/ls2w/yaxvCEocvNqe44GHkHRDw9e7SSUajVMSF aX2Atn3ZtkxuSS4/mUJc0sPnqSAA5bjLIlmrj0sCDD/CT/YQK/eAJ9Z1uscIvmaO3lBg DyxNM6Y+B7Yioy/JlmR1ACer59eRbYdYXfe/1OHdYNI5mgFBf5hNRdJQhKfb6dXldsmB bJdsSvKf/wQE7+/HL3f0TWeetR/5UuhoUJePs0sAfOOwTWhqFtlaQ71aOFyAqLyAuecq 1Y5mytHLyOOK5KU6Qg878yi12+NMg+Kv0kIZRdE9mdVTJYFVv+LBO2Fz6KECivu4ptwG Qt1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="kPZUWA/e"; 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 x68-v6si26571631pfc.205.2018.10.10.16.13.30; Wed, 10 Oct 2018 16:13:46 -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="kPZUWA/e"; 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 S1727059AbeJKGhP (ORCPT + 99 others); Thu, 11 Oct 2018 02:37:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:35384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726920AbeJKGhO (ORCPT ); Thu, 11 Oct 2018 02:37:14 -0400 Received: from lerouge.suse.de (LFbn-NCY-1-241-207.w83-194.abo.wanadoo.fr [83.194.85.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EE0D520870; Wed, 10 Oct 2018 23:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539213173; bh=wq8jlGbzuZwQ2vItzn9jv3vCxHZh9o02e8GUGKlKN9I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kPZUWA/etbEroUmHL4aqINYaXw2eJc3r+CiKFMED4z0Zmf0T1eJq0LU3QT2wMbx/S KFn3U3UUd6mQR5mnxGQDqCoNlFtWZlbwMWooTa7UyTd4s8QQGki+ORUIIzp7xDhjEx MPXc/PvD/Dr6i7jFqFg5YimH5la+JuwPYzjGww/g= From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Sebastian Andrzej Siewior , Peter Zijlstra , "David S . Miller" , Linus Torvalds , Thomas Gleixner , "Paul E . McKenney" , Ingo Molnar , Frederic Weisbecker , Mauro Carvalho Chehab Subject: [RFC PATCH 07/30] softirq: Rename _local_bh_enable() to local_bh_enable_no_softirq() Date: Thu, 11 Oct 2018 01:11:54 +0200 Message-Id: <1539213137-13953-8-git-send-email-frederic@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539213137-13953-1-git-send-email-frederic@kernel.org> References: <1539213137-13953-1-git-send-email-frederic@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bottom half masking APIs have become interestingly confusing with all these flavours: local_bh_enable() _local_bh_enable() local_bh_enable_ip() __local_bh_enable_ip() _local_bh_enable() is an exception here because it's the only version that won't execute do_softirq() in the end. Clarify this straight in the name. It may help reviewers who are already familiar with functions such as preempt_enable_no_resched(). Signed-off-by: Frederic Weisbecker Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Linus Torvalds Cc: David S. Miller Cc: Mauro Carvalho Chehab Cc: Paul E. McKenney --- arch/s390/lib/delay.c | 2 +- drivers/s390/char/sclp.c | 2 +- drivers/s390/cio/cio.c | 2 +- include/linux/bottom_half.h | 2 +- kernel/softirq.c | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/s390/lib/delay.c b/arch/s390/lib/delay.c index d4aa1079..3f83ee9 100644 --- a/arch/s390/lib/delay.c +++ b/arch/s390/lib/delay.c @@ -91,7 +91,7 @@ void __udelay(unsigned long long usecs) if (raw_irqs_disabled_flags(flags)) { local_bh_disable(); __udelay_disabled(usecs); - _local_bh_enable(); + local_bh_enable_no_softirq(); goto out; } __udelay_enabled(usecs); diff --git a/drivers/s390/char/sclp.c b/drivers/s390/char/sclp.c index e9aa71c..6c6b745 100644 --- a/drivers/s390/char/sclp.c +++ b/drivers/s390/char/sclp.c @@ -572,7 +572,7 @@ sclp_sync_wait(void) local_irq_disable(); __ctl_load(cr0, 0, 0); if (!irq_context) - _local_bh_enable(); + local_bh_enable_no_softirq(); local_tick_enable(old_tick); local_irq_restore(flags); } diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c index de744ca..e3fb83b 100644 --- a/drivers/s390/cio/cio.c +++ b/drivers/s390/cio/cio.c @@ -607,7 +607,7 @@ void cio_tsch(struct subchannel *sch) inc_irq_stat(IRQIO_CIO); if (!irq_context) { irq_exit(); - _local_bh_enable(); + local_bh_enable_no_softirq(); } } diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h index a19519f..a104f81 100644 --- a/include/linux/bottom_half.h +++ b/include/linux/bottom_half.h @@ -19,7 +19,7 @@ static inline void local_bh_disable(void) __local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET); } -extern void _local_bh_enable(void); +extern void local_bh_enable_no_softirq(void); extern void __local_bh_enable_ip(unsigned long ip, unsigned int cnt); static inline void local_bh_enable_ip(unsigned long ip) diff --git a/kernel/softirq.c b/kernel/softirq.c index 288e007..fdb2574 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -156,12 +156,12 @@ static void __local_bh_enable(unsigned int cnt) * Special-case - softirqs can safely be enabled by __do_softirq(), * without processing still-pending softirqs: */ -void _local_bh_enable(void) +void local_bh_enable_no_softirq(void) { WARN_ON_ONCE(in_irq()); __local_bh_enable(SOFTIRQ_DISABLE_OFFSET); } -EXPORT_SYMBOL(_local_bh_enable); +EXPORT_SYMBOL(local_bh_enable_no_softirq); void __local_bh_enable_ip(unsigned long ip, unsigned int cnt) { @@ -351,7 +351,7 @@ void irq_enter(void) */ local_bh_disable(); tick_irq_enter(); - _local_bh_enable(); + local_bh_enable_no_softirq(); } __irq_enter(); -- 2.7.4