Received: by 10.213.65.68 with SMTP id h4csp1515046imn; Mon, 26 Mar 2018 09:01:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELthJNyBNASWBNEOXoUb6Ox0uW7XOq5TL3Kv37lBFIXPCIJvQHkmBnS/TLWHfWLXmWz1wwx0 X-Received: by 2002:a17:902:108a:: with SMTP id c10-v6mr36171976pla.22.1522080065293; Mon, 26 Mar 2018 09:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522080065; cv=none; d=google.com; s=arc-20160816; b=dAD7AKULm3vcCUBhZlk6HDfpVEn1aNV/D5TwYNoyXViu46vWqjMugmKXxpwU8Z7YKI C5ZxTzufimIA3WMFrYQNu02XFaQzKCU93gjC3Xbp8X+gfS89Gu4bxxe8RXQpGb9B9OF2 U/gUrC8Pgl/JMoD1RkTDd7KSVieyP5jRfTvJJ0Wmz5OuM4S/4/XpZ/G2Dm1D/FfDahTc THwo1mnKh9tDOHNDMSZ/afp9urD1wcccOYtCcc0fXWwnkne2vljdyYzJU28iTMU3+eJB gV9n0v5U6jgadeq8BXygyv3QBBeUF3nKaejxTJfe5Xoo1MGmX8Dadvsg8GELY2bOPVWM tJEg== 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=H2DNzHWo448XZIqhUdpW+Nk7mJ4CFFR+CWmYd0+BW/4=; b=NldHe7WE65GxKfP5uHM4XV0t3uFv98hMit+h4KKOEdLJiUuVmxdjMDCpvAA8LpN7aS tC91SLkJ5XzaHp747C6pFsUwcn66JcKZZ7GiaMPPKT1JRJYsyn4xJGs95nDzORKs+P2E uOQhqvJooVoV4tLe0oJslTPAzH1aMXbnGcp7inoBwxme0BBRa4iN7XGhiDVC6c2JdKJg NKDa+BPcNgCnAvDFcBptV4VQ6vmc2DzJUVrmZx4sujYBkN8PFlFpFHCPTXU0W3R0vhBk AqaFYt1HIp8ctPZzZ6G44vTqNmEqPMks+eFcuanj/R4UoGnPDzVosj0rQI6UwceMJYsI ISeQ== 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 z10si10498793pgs.329.2018.03.26.09.00.46; Mon, 26 Mar 2018 09:01:05 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752321AbeCZP7I (ORCPT + 99 others); Mon, 26 Mar 2018 11:59:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:45066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249AbeCZP7H (ORCPT ); Mon, 26 Mar 2018 11:59:07 -0400 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 B2EA62172B; Mon, 26 Mar 2018 15:59:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B2EA62172B 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: Mon, 26 Mar 2018 11:59:04 -0400 From: Steven Rostedt To: joe.korty@concurrent-rt.com Cc: Julia Cartwright , , , , , Subject: Re: [PATCH RT] Defer migrate_enable migration while task state != TASK_RUNNING Message-ID: <20180326115904.492a3bad@gandalf.local.home> In-Reply-To: <20180326155451.GA16545@zipoli.concurrent-rt.com> References: <20180323150959.GA16131@zipoli.concurrent-rt.com> <20180323165921.GG10942@jcartwri.amer.corp.natinst.com> <20180323172131.GA2670@zipoli.concurrent-rt.com> <20180326113515.720e7fb3@gandalf.local.home> <20180326155451.GA16545@zipoli.concurrent-rt.com> 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 Mon, 26 Mar 2018 11:54:51 -0400 joe.korty@concurrent-rt.com wrote: > Oh well. Makes me wonder why might_sleep is testing for > !TASK_RUNNABLE though. Because might_sleep() is used when the function might call schedule() directly. And schedule() *will* change the task state to TASK_RUNNING. might_sleep() has nothing to do with preemption. -- Steve