Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4432255imw; Tue, 12 Jul 2022 07:52:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tdT7LF/4BShbzmf8ZX88VnR0t3q2zwcQUz7dvuV1DruG1GUQABpqOXCXdM5IL8QWTNCMnK X-Received: by 2002:a63:244:0:b0:412:a3c3:3ebe with SMTP id 65-20020a630244000000b00412a3c33ebemr19969066pgc.185.1657637534623; Tue, 12 Jul 2022 07:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657637534; cv=none; d=google.com; s=arc-20160816; b=b89gA3/g743nSwaiB9K2Vpeqse0ffjsMYkxf3cS7TdLpMF0gouekTBdgDWI7JLew5b f2ngmjbUkhAmmuw6snbU3h/5X68GBDFP3RbYuBAciLBoJ4OXlfeB0wkuwlUquyfSA866 3Vf2kOxKl4Gjf+61YWrSdvAbDvwjYq47QDXova/P8qO1qEvAY2YgYHBnNVYFPn2qrAJ1 8tLIWziO3s8k4Fpw8oDzQdGY0f2atafpygc3GaJ+/eFIVAeFOexhgsdUGLqNJi8byipb Br/sVlKMzxgpu9YSvNa84rDeIFaBOnG4n/4uJZuV7YlqZfPv+mDmYeovQzMmieH30TQQ CR6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=fiLcmg8INbT/j5CHjwI6Kw5kRO6LOoKe3HHWLDeYLU8=; b=HeRYxg6nMpwPzqGOj65Epx5Z8Y9JF7oAmlRAA2wCBsgnx5dFgCCLQudpwN56Gae49e Me5JG8yUMQZoggBfODFV6jypvfIMh/cWJLORQmZTIQIc6j5vkGyprz1sxyzMAltpgQHr qgYkzEBDok3l4sc0cOfiYhxN3UbOiGUe0Y/PmsVzDfoGkGhZJ1be14uZjH9WOKMxhlXL YSjZ5Y9+/EuRZQT2L8MaJ7h+7C/wTO/fywc/aUdVql1HF2zjCyhS/6JzuaWzjA+UiRJa Ry4GqlTxYJ3rqimOpEMU1maODP5uOCkHpf2aBzCEFRGKaxsJsSEf5AU6ndRdfVXcNvcn nGMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a63e306000000b0040e64eee87fsi13024895pgh.722.2022.07.12.07.52.00; Tue, 12 Jul 2022 07:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232968AbiGLNxb (ORCPT + 99 others); Tue, 12 Jul 2022 09:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiGLNxa (ORCPT ); Tue, 12 Jul 2022 09:53:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7C63B5D2C for ; Tue, 12 Jul 2022 06:53:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 515E161857 for ; Tue, 12 Jul 2022 13:53:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77FDCC3411C; Tue, 12 Jul 2022 13:53:27 +0000 (UTC) Date: Tue, 12 Jul 2022 09:53:25 -0400 From: Steven Rostedt To: Schspa Shi Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, zhaohui.shi@horizon.ai Subject: Re: [PATCH v5 1/2] sched/rt: fix bad task migration for rt tasks Message-ID: <20220712095325.408d1730@gandalf.local.home> In-Reply-To: <20220712013125.623338-1-schspa@gmail.com> References: <20220712013125.623338-1-schspa@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Jul 2022 09:31:24 +0800 Schspa Shi wrote: > @@ -1998,11 +1998,15 @@ static struct rq *find_lock_lowest_rq(struct task_struct *task, struct rq *rq) > * the mean time, task could have > * migrated already or had its affinity changed. > * Also make sure that it wasn't scheduled on its rq. > + * It is possible the task was scheduled, set > + * "migrate_disabled" and then got preempted, And we > + * check task migration disable flag here too. Nit. "got preempted, so we must check the task migration disable flag here too". But other than that. Reviewed-by: Steven Rostedt (Google) -- Steve > */