Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3879599imw; Mon, 11 Jul 2022 18:36:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+YX3OujHHJxdZ4q5S+ws6pBBCuAuQt1LbY8bVHYQw/V2MQxNJi/br7cl+/kWGSnzlMIED X-Received: by 2002:a17:907:7202:b0:722:e4d6:2e17 with SMTP id dr2-20020a170907720200b00722e4d62e17mr21273745ejc.434.1657589802322; Mon, 11 Jul 2022 18:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657589802; cv=none; d=google.com; s=arc-20160816; b=PqsuJjh0Gac2PAOqvVCJodpJJ+/HVkVFZrKY3j5L0r05zAcLrK3CcbsulazdLdrVvM G7G7lnRcpDKDeiDULBpQuNFV9xWIjzdfXh7TVlg6D/6eU8q2TFEIXS/8yTeJQEkaUwmf RH2O+0MAzOQCh1d8VGiJJo/Nen1+/2/IYeqZnQ99TogskoM9Ub5U4gV5Lw+d402BqP37 Irvp2mBe8VV86kHIhcezzCqhEZc1LpWFb1pH9oQf8PedHjjnVYE5tNJw9TkhIfnC1Qra EXAe6Jp4ooFkeg9HxP5GpKorIkxf7j5Et2yEmO2JUNCPaJ0SV7LY7guF3f4peQWgPVuL thqg== 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=QZLpIhjYwGuVhax2EU1nSTz18pRWnH5HACpP8UKA6u4=; b=RFvilSwy5+ZxijiEwsPqI7CaiRN1Auok5xiuZ6+hGJcneZbMtv+pW0lCWSr+JEMrzS XU7OqQAYwnwPU48l7k7lyroRiKMj4Es9Cq4WNnIbYU96DUJz2Mriw/Q0H/nsCuyNe1Yv YWnzX+Zx7NvozbfweUxEf7U1aTonzuIzm9V6yWhaPdu2W5c2OgE6PmB4QYnKWuwe7oPL JqigRuIQRRGXoZl5Sd18PTesUlC0MF8UcuuQHRN+2DoXZncxnYaw/QAv2WfkHuaeKeC9 oYxE38imS9ur2uQNe78EgC4x0y47jHnJGrVQXLtL39fjiIdRNRLTAcE4U4rAd98JVmN8 iL/Q== 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 gt6-20020a1709072d8600b0072b4af77c94si11874278ejc.750.2022.07.11.18.36.17; Mon, 11 Jul 2022 18:36:42 -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 S230453AbiGLBQt (ORCPT + 99 others); Mon, 11 Jul 2022 21:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiGLBQq (ORCPT ); Mon, 11 Jul 2022 21:16:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56C0133432 for ; Mon, 11 Jul 2022 18:16:45 -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 ams.source.kernel.org (Postfix) with ESMTPS id 06745B81628 for ; Tue, 12 Jul 2022 01:16:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8060AC34115; Tue, 12 Jul 2022 01:16:41 +0000 (UTC) Date: Mon, 11 Jul 2022 21:16:39 -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 Subject: Re: [PATCH v4 1/2] sched/rt: fix bad task migration for rt tasks Message-ID: <20220711211639.6c714635@gandalf.local.home> In-Reply-To: References: <20220708211755.73637-1-schspa@gmail.com> <20220708172614.14191089@gandalf.local.home> <20220711161037.06b8c1ea@gandalf.local.home> 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 08:53:56 +0800 Schspa Shi wrote: > How about to change this to > > /* > * We had to unlock the run queue. In > * 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. > */ That's better. But of course it needs better formatting ;-) -- Steve