Received: by 10.223.185.116 with SMTP id b49csp1043990wrg; Fri, 16 Feb 2018 11:22:29 -0800 (PST) X-Google-Smtp-Source: AH8x226MpaJEX2ACbq3i8N6bBsHIO8wZ2TLy5Lb7HvYA3xIKo6rmv6HTvn1YlsA3Pd7o1U+riLsm X-Received: by 2002:a17:902:28c4:: with SMTP id f62-v6mr6705702plb.31.1518808949777; Fri, 16 Feb 2018 11:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808949; cv=none; d=google.com; s=arc-20160816; b=ve63IFLDfiWSzWirXgVbEKtIkl9fPl9hwgPzTZhCnMe2qsicoTz5K6dB2rNbtlp4YP g96rd1lsEYivlKFnnR2PpHAhdJXolNkDb28327dwGJ/hYzgtqKvyUIjs1B1zbgYtTr0L yOkBrcy3aFEyxaoiFo6UhM2gMuJ8ZEc3jnBq/lWW27rWMyNZg670jKYBC4i8Udn8mpnY R40DrnHXvc9yq4E3tSYLIpWsOCjNibI/4dCa/7bt2EdsuPZ3BpQlBCT8L7+c3Gy7Ix4N hsMslb/T+zKmHaOG0ZbMfxWlMMElHXwCdUY5amAJWkh/h5kTQkHNhVJwFGEVyDyuEhM+ ydHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=suYoscJYb6KK8/QK9t4eM/Vhq9CNwBC/7p5WgOssqpg=; b=GBmoR17FJiDUmnBj40q7HO7S//1pDjEdAb4i77nIbuUR62sT25dN+O08RihRcEDg58 UD5L2a2DaprIY3v1UFbXrpnATiQ8gwE/QPl7KHF/L6KGPIxOLDZ8PWrp1Me9ox+ldWrM a5/+tG5H0dYwrjHCCGEbCc5mkRgBs6XkZzFsIDKsYC54XZzWa7GdDbUjM2wvpn03yljv qUnDwr8+Ch6X0NdAcjwtFw0h9Xtq2MO+d5iNnVZ+ytYNOEfVrActzZHDoIi6Ec1I32lO R9b9im5I6PaWC/r9tifxyh8xV7jCEwPQjv6bTti7kWdOI8zbU1e2w0a7d8VnewtFJAN2 +Cog== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c66si3321554pfc.303.2018.02.16.11.22.15; Fri, 16 Feb 2018 11:22:29 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162487AbeBPRzO (ORCPT + 99 others); Fri, 16 Feb 2018 12:55:14 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:57058 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161064AbeBPRzN (ORCPT ); Fri, 16 Feb 2018 12:55:13 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1emkAp-00068C-Pr; Fri, 16 Feb 2018 18:51:51 +0100 Date: Fri, 16 Feb 2018 18:55:09 +0100 From: Sebastian Andrzej Siewior To: Steven Rostedt Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, Ingo Molnar Subject: Re: [PATCH 1/2] kernel/sofirq: consolidate common code in __tasklet_schedule() + _hi_ Message-ID: <20180216175508.vezb3ll32dxvlz4z@linutronix.de> References: <20180215172042.31573-1-bigeasy@linutronix.de> <20180215172042.31573-2-bigeasy@linutronix.de> <20180215150707.49cc2332@gandalf.local.home> <20180216085302.ptzq5yspmdq3zlh6@linutronix.de> <20180216123109.5098b1ca@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180216123109.5098b1ca@gandalf.local.home> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-16 12:31:09 [-0500], Steven Rostedt wrote: > On Fri, 16 Feb 2018 09:53:03 +0100 > Sebastian Andrzej Siewior wrote: > > > As for the second invocation (tasklet_action_common() part) is always > > invoked in BH-disabled context (even if called from ksoftirqd) so you > > are never preemptible() and can't switch CPUs. > > So I am going to correct this patch as you suggested but I don't see the > > reason to do the same in the second one. > > Should we add something like: > > WARN_ON_ONCE(!in_atomic()); > > ? Doubt it. this_cpu_ptr() screams already with CONFIG_DEBUG_PREEMPT. > -- Steve Sebastian