Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5415461ybf; Thu, 5 Mar 2020 00:13:00 -0800 (PST) X-Google-Smtp-Source: ADFU+vtk3p+wl+gluaToE+PWlRKTybwaXCSRFfM5lUr8ELwgLKXaDeLnmeS6tnFU/7hKzJI/d6k/ X-Received: by 2002:a9d:7508:: with SMTP id r8mr5745935otk.116.1583395979625; Thu, 05 Mar 2020 00:12:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583395979; cv=none; d=google.com; s=arc-20160816; b=Q/HA/nE1IMYw8GFMPi/X1KDMM7VcLGxJtNOInF55nj2RNsZj2mH1v/j4TZMUYW/C4U FgBg7rqweNA3mF6KZmDnktcyCPIMvoih67X/KB9sZ8uuIfFDNbHyfiMnY23n30W+nrfs Q5XFbeQgi+5vyD0AkDIZomQyX6/343i1ZAZHMsNmUpYWxNxYmwBerwW+EGd/pYQ1x1au 6vyLEBTcdqA1NfFxoSFAL8uCpnWTHQw8i37z6zZD6ltmWCkMYJWsM7oOKw4VozSi+fyh 2Czl4tk1vgAXLspLd7h+u3C+xdei+XesPe40YIowkiL+GxPh022qI5H+9KfV7b8q4OLc SDnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zHV98BHKarKTu4yHrZ2PgmopZBO/IXDMFxvaMhU2Zak=; b=bpUn218jlsHxz40J3ZpDANiCcZXoLGJqUi608Lu6ao6Q34FeaQu9IKZM7Ud0MP4wQn A+G6WIlCl9AYt1J4Rzng9H9fFlRKKCDDD1MjEbX9RE348UX7nvBDR6HoEuXcewVLAG0Y kYy+RINbIF7HVjPc5edHJgvhEO68CG0Zq0ssOq4ae0h56DehtV6X/Sg1jb/yfEzaAhJT U8IMXSQSm8hefhMYRFo/ayIkYrA75V5HnvSKagubuIRRb1qr5JlqcLFxnWsuNNhRKeBj /dlWpUi8iERmgB9ABrJ9M+IxQCSGs4o64EHMwI2MTTHmtc9WuVhBiSgpJIIyAX7ej1Fm sMcg== 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 v21si2846394otp.189.2020.03.05.00.12.48; Thu, 05 Mar 2020 00:12:59 -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 S1726145AbgCEILx (ORCPT + 99 others); Thu, 5 Mar 2020 03:11:53 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:49387 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbgCEILx (ORCPT ); Thu, 5 Mar 2020 03:11:53 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1j9lbT-0000kj-Bb; Thu, 05 Mar 2020 09:11:35 +0100 Date: Thu, 5 Mar 2020 09:11:35 +0100 From: Sebastian Andrzej Siewior To: "Paul E. McKenney" Cc: josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, tglx@linutronix.de, swood@redhat.com, williams@redhat.com, juri.lelli@redhat.com, linux-rt-users@vger.kernel.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org Subject: Re: RCU use of swait Message-ID: <20200305081135.yg7wryd3hrqzocrm@linutronix.de> References: <20200305003526.GA20601@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200305003526.GA20601@paulmck-ThinkPad-P72> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-03-04 16:35:26 [-0800], Paul E. McKenney wrote: > Hello! Hi Paul, > Or is there some other reason why {S,}RCU needs to use swait that I > am forgetting? swait can be used in hardirq-context (on RT) that is in a section within local_irq_save() / raw_spin_lock() and so. wait on the hand uses spinlock_t which can not be used in this context. So if you have no users which fall into that category then you could move back to wait.h. > Thanx, Paul Sebastian