Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp825144ybl; Fri, 23 Aug 2019 08:54:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqynMsqO1cRnxS+VjPOyrdoZbMNSpI4wmtSq/ZgrjuwQZ1MGNI+u8sBUnbT7r+XAYe9b1sVY X-Received: by 2002:aa7:8acb:: with SMTP id b11mr5858394pfd.109.1566575662706; Fri, 23 Aug 2019 08:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566575662; cv=none; d=google.com; s=arc-20160816; b=lp/lYdwa8eadvmzrwOX9Ysj830vy8lo2V0B0MjvLPHmq5pJvzISfMGM6QWhzTO9/Y6 iQhidhEXzkUPcg9AOJrhCdrtvU45KJcoB4jXNolAdL0i4P7JCTjr7gzGKfqGJtN9S7YJ BnspbnLeHZSmX/DFiFk0MloLG+pwj6gVD3MFfhZgjwAhOeOT7lhEE3pQ/XngY5rTUXYt DjzfCe8uMNZXpyMdvn4uQK07QY5mcYF/mKmpBMsEBl2mdAFLrAT5hRtASMcCKbS9vDK7 g7wTrT3IUJW2ABvZibX85odenU2AtD9jJtAwe0SJLbZacsN1BV1hi5HqWN+Rm3WlacT6 zx5w== 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=4+9tE2C5jdpC0/u6vyguKQ+K1a9hOHybfqKdV+4p9tw=; b=HzOlYcJ2aYOqUiqCCGUwQsoUAUu6aJlHXEG2PIfpynYRuRLa2YjLyTVUZcgeEs1KAr 9lAlkN7lY8egtyB47aCOckmScId+ihQGp9fpFu53wr541C61bAyBWkkLQwjB5LXkUNUe qGOf8VY14ykLo6W78IbWcLIcKHIvOPoBfz/9UXTm+Ke9hVKszu/2e2WVLlAtEi2burPD 6CfFrXr98tkibXoEYs5DOI4cdUx7eYS2s0/+2uV3C6Hhwr6EmlrUdLkTzNoAgpnhkjDK RPg492QoWf+7EIRJMGYbAqd4CYJHniyw4ss/bpMbSZAeMTs2vHIsGmm6L2giaGxCtdx6 dqCg== 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 x20si2470848pjn.49.2019.08.23.08.54.07; Fri, 23 Aug 2019 08:54:22 -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 S2387963AbfHWBVj (ORCPT + 99 others); Thu, 22 Aug 2019 21:21:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59478 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733068AbfHWBVi (ORCPT ); Thu, 22 Aug 2019 21:21:38 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AAE623082A98; Fri, 23 Aug 2019 01:21:38 +0000 (UTC) Received: from ovpn-117-150.phx2.redhat.com (ovpn-117-150.phx2.redhat.com [10.3.117.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 82A1560C57; Fri, 23 Aug 2019 01:21:35 +0000 (UTC) Message-ID: <99df6853f2eb541773435053983ab466b88b0d74.camel@redhat.com> Subject: Re: [PATCH RT v2 2/3] sched: migrate_enable: Use sleeping_lock to indicate involuntary sleep From: Scott Wood To: paulmck@linux.ibm.com Cc: Sebastian Andrzej Siewior , linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Fernandes , Thomas Gleixner , Peter Zijlstra , Juri Lelli , Clark Williams Date: Thu, 22 Aug 2019 20:21:34 -0500 In-Reply-To: <20190821233555.GV28441@linux.ibm.com> References: <20190821231906.4224-1-swood@redhat.com> <20190821231906.4224-3-swood@redhat.com> <20190821233555.GV28441@linux.ibm.com> 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Fri, 23 Aug 2019 01:21:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-08-21 at 16:35 -0700, Paul E. McKenney wrote: > On Wed, Aug 21, 2019 at 06:19:05PM -0500, Scott Wood wrote: > > Without this, rcu_note_context_switch() will complain if an RCU read > > lock is held when migrate_enable() calls stop_one_cpu(). > > > > Signed-off-by: Scott Wood > > I have to ask... Both sleeping_lock_inc() and sleeping_lock_dec() are > no-ops if not CONFIG_PREEMPT_RT_BASE? Yes. -Scott