Received: by 10.223.185.116 with SMTP id b49csp1042670wrg; Fri, 16 Feb 2018 11:20:55 -0800 (PST) X-Google-Smtp-Source: AH8x226yRd1NJgsTbIOe5h1CjZ54qbsRz4Z0PUlPoXK9/uP8jCq2d/5nvsavyOk9aQ4DdX4Ex5fR X-Received: by 2002:a17:902:a703:: with SMTP id w3-v6mr3308152plq.299.1518808855258; Fri, 16 Feb 2018 11:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808855; cv=none; d=google.com; s=arc-20160816; b=eQfR+CLDYPxRbIlwyVOxLmRxI0QT8B3cM/Ra8pgHofKUuVLdzMga85mJYrK8myPmF2 0PAgYZNdySaAbIqXfHQyoe+5JHpeagTh6fO11/n/E3Iyp2DXfa0vm8wzyKycAJfhJRLs +X2WqxiLXc4qVFWamlBqgihKEUMeRM0PHAaE0j0HvqZP9uTc1dNPRj7X1cq0Xe3xiNi+ bIhexShB1rDXXOYmnceFsqg4H91WMkCmquVu4W61e6474fgezr/DtFCY72Ut/HL6HK5c 21qugXf5eBmRmx5gUR/Z8pqXSNcoQhnSZPmUBfIyBzSQmtGF/BLAGUa89P+cTWBr1lwo KnZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=vj/MeHbbgmRlH/pPJT9A7DLzRojsfHYWgdJ3VtjVHoY=; b=AeKdaMWokS+J7l1YnZbPtEUhTnwGg1thBvQieicbsXK6DTGq1KJzgoWCBg2204NS2v cGKsIDy1/TbzLOl7mextqdCYnEtrFh36C3VDXkIECDaj/5xTwK0GZyCxueXT3pm5SYMY tGNqpSzhgAqEbqnz1m8MM9S0e5naQhySN6PC8qSF9LYQZPr96shbOd/7AMi/2TB/H23G wzZx79R7yrgzJbMsYuxTedCtNjgklkuKTkzxAmdz9TjMSj1I/fZaA7Esr33fZ8GCDF+D Uer2ufH2n83ejyty1zLXg/AZgneihD8wiqfzGUQG4bfiPiUmxjxkbCjb8Vqi+3JJxB7t qBAA== 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 g92-v6si1930082plg.629.2018.02.16.11.20.40; Fri, 16 Feb 2018 11:20:55 -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 S1161967AbeBPRbN (ORCPT + 99 others); Fri, 16 Feb 2018 12:31:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:39066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161857AbeBPRbM (ORCPT ); Fri, 16 Feb 2018 12:31:12 -0500 Received: from gandalf.local.home (cpe-172-100-180-131.stny.res.rr.com [172.100.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E01F9217CA; Fri, 16 Feb 2018 17:31:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E01F9217CA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 16 Feb 2018 12:31:09 -0500 From: Steven Rostedt To: Sebastian Andrzej Siewior 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: <20180216123109.5098b1ca@gandalf.local.home> In-Reply-To: <20180216085302.ptzq5yspmdq3zlh6@linutronix.de> References: <20180215172042.31573-1-bigeasy@linutronix.de> <20180215172042.31573-2-bigeasy@linutronix.de> <20180215150707.49cc2332@gandalf.local.home> <20180216085302.ptzq5yspmdq3zlh6@linutronix.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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()); ? -- Steve