Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5942213ybe; Tue, 17 Sep 2019 16:33:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfwaBCOjgCJk9WKSmRRZe60i7fuSEfgrmUT9acAjjNp6gNmaPaFUd7sfjKof85OUt5DHKW X-Received: by 2002:a17:906:5a96:: with SMTP id l22mr5114134ejq.310.1568763189053; Tue, 17 Sep 2019 16:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568763189; cv=none; d=google.com; s=arc-20160816; b=PeusWYZhjieAV3molA3sVXoGh86LbTLxC8/+5VshRyJEzMNE+Qw09IxlJuMXVXkuXq xBXHe+eCbzw3Wogd6El2inHNEyNrhyH18bdjcL10S9Zm5tCkHin//0W/WVXvB4t41jjc 15Qj3UxDt7BB9PHx7VTmRZByJ5ev8r2Lx2BbhEI+38I14GnkO69C71REzDdg+pLL+mM9 X56+J2d7nFvWwdIiJhfvCLO4LPf2gd7uhqjIk1/wa9AIWGRS3l++ayP5rVunzceutpkQ XzKAPZtwg0EUrzDcV5PQzeK/qrsnxOQwGL2f9IWf2BREh8uMDZESRpMJ4hTSwvu36Je9 JPgw== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=IL7HAKx2qKnqEYycwNDxOxOf7O53q4a5ObMwuTKUbIg=; b=UiD0GhUjPXpjoTNPqKKuoVoT1X88giLXBDe+eNUqQ0YziFMZN1BcQOKJt0zGGzF1xk SYol9v7YuSmCm6GOlQRSLa4kSSqF1uDVC1psqnfvV42p/lGl8/5ubIeHDlI/HmZAcmM+ 6cWHSTf68Ss3+fCBjx5DJGOsw+KYnOvmBa4aGXIaWggPep+qzfDORIlFS1lXVBheo26N A2XNQrZs+vyaolKRdZLBw8J1REp9ewbIBL+rNIy3kdgfDKHDnxoPR5YUmQS+GWq79IHW zCLlAFA5d2tWGI/js0V+71Ne4R9Vg3PLDji0ApzBWKWdctucHJ23yzy9v38D+zaf/VSd yBhg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si2250222ede.268.2019.09.17.16.32.45; Tue, 17 Sep 2019 16:33:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726774AbfIQOGm (ORCPT + 99 others); Tue, 17 Sep 2019 10:06:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43596 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfIQOGk (ORCPT ); Tue, 17 Sep 2019 10:06:40 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 68568308212F; Tue, 17 Sep 2019 14:06:40 +0000 (UTC) Received: from ovpn-117-172.phx2.redhat.com (ovpn-117-172.phx2.redhat.com [10.3.117.172]) by smtp.corp.redhat.com (Postfix) with ESMTP id 711A760852; Tue, 17 Sep 2019 14:06:39 +0000 (UTC) Message-ID: <779eddcc937941e65659a11b1867c6623a2c8890.camel@redhat.com> Subject: Re: [PATCH RT v3 3/5] sched: migrate_dis/enable: Use rt_invol_sleep From: Scott Wood To: Sebastian Andrzej Siewior Cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E . McKenney" , Joel Fernandes , Thomas Gleixner , Steven Rostedt , Peter Zijlstra , Juri Lelli , Clark Williams Date: Tue, 17 Sep 2019 09:06:34 -0500 In-Reply-To: <20190917075943.qsaakyent4dxjkq4@linutronix.de> References: <20190911165729.11178-1-swood@redhat.com> <20190911165729.11178-4-swood@redhat.com> <20190917075943.qsaakyent4dxjkq4@linutronix.de> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Tue, 17 Sep 2019 14:06:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-09-17 at 09:59 +0200, Sebastian Andrzej Siewior wrote: > On 2019-09-11 17:57:27 [+0100], Scott Wood wrote: > > diff --git a/kernel/cpu.c b/kernel/cpu.c > > index 885a195dfbe0..32c6175b63b6 100644 > > --- a/kernel/cpu.c > > +++ b/kernel/cpu.c > > @@ -308,7 +308,9 @@ void pin_current_cpu(void) > > preempt_lazy_enable(); > > preempt_enable(); > > > > + rt_invol_sleep_inc(); > > __read_rt_lock(cpuhp_pin); > > + rt_invol_sleep_dec(); > > > > preempt_disable(); > > preempt_lazy_disable(); > > I understand the other one. But now looking at it, both end up in > rt_spin_lock_slowlock_locked() which would be the proper place to do > that annotation. Okay. FWIW, if my lazy migrate patchset is accepted, then there will be no users of __read_rt_lock() outside rwlock-rt.c and it'll be moot. -Scott