Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4433338imw; Tue, 12 Jul 2022 07:53:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vvmQHVGtHg3fYE3Cb5ZHTay4ZVsYu/srtTkHGmk0wAnY3JioMYjHXjHSv5mlus8IDWEZdC X-Received: by 2002:a17:903:22d0:b0:16b:f798:1cff with SMTP id y16-20020a17090322d000b0016bf7981cffmr23716657plg.23.1657637607767; Tue, 12 Jul 2022 07:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657637607; cv=none; d=google.com; s=arc-20160816; b=jV57srkIUD0LpZHRRRrPUYcf1w7E/B6nQJRG/t8wB+WVYeaq8jp2ogmxqfY5HsMzTD +/BFaECKn69oMCoVgVk92qpyYyNlFEaI7qC6NtjgyZMdmrGr3Uh4HsF2R+mrcMZbx/+T VxhY8V5dllP2iD0PP4LYhGfZWf1GtWCjIxo+taPYvGHUW3qLzQDi3/ZAxmCdkisAgBVG 4phakjFDWXyKzWRP3D6TeUr0dqWIOWNrF6DAKrgcdQmUpNo7taoun9eBjEeftH3+8j8o Eu7GtcYADbeyKNs4OpvVaO9PNpBu0QHOLf/MV/QtKD6jRF2ICiY1QfhKUzJaT97Ny3B2 wBzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=fo//0I0AslshoYVyaZDmo1hPdJN5skuX2wqL7b4ff0Q=; b=YwIBAOdblNBAa7zccDKMC4DhTXmpWTexGmGjgUaaHwb8otefA3M2/F5HcCMjOnIWGW lOFMqu7QpAEvDzhetcUaa9k0PLOT3jmCpgGfc7kly7NTzatKSpGbo7HSvZRqIQ647oW5 VW4d3dMNodLYU+ThmSz9zBRBIedmAa09W21fqZ/NU1hnpKZziBDu8hLSSu/5doGh5lIf VmFIdPXPtCEr/ThlMZPHFGXS8PzgRlFR5dBci0xt3C/uh91rkjLFKd8imI32egvFam3j GMv3UuFynvtATC/Qrv8XNH1y+VrgeSImAQbgHEqPaaIps7aw7p+AET6Vi2tCBpDEDrqe QRvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jUUaGMYM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a170903120b00b0016bdc5c16a3si3301969plh.574.2022.07.12.07.53.15; Tue, 12 Jul 2022 07:53:27 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jUUaGMYM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233106AbiGLOh7 (ORCPT + 99 others); Tue, 12 Jul 2022 10:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230152AbiGLOh6 (ORCPT ); Tue, 12 Jul 2022 10:37:58 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F0062707 for ; Tue, 12 Jul 2022 07:37:57 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id t5-20020a17090a6a0500b001ef965b262eso8206676pjj.5 for ; Tue, 12 Jul 2022 07:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=fo//0I0AslshoYVyaZDmo1hPdJN5skuX2wqL7b4ff0Q=; b=jUUaGMYMJc1jvzr5WBavgHoBCc460nCY1fRSyTSANegMRdHDSgqIiysHoCTftA8yCI rX2mPjpliOL9g0CuwJOCMUvsvbxXbT/efus1kWmgnQ3vuZ4CoYpmKOogIhM9OrLDfG/G V3wlWA+HzNK/eUNN2t7eSXCNz+xBkcVncT2ArpHJay7n1NXiplYWVaDL2i201+r+apom c+SMcD1h4CTY5HOLZ89flF44MCFoufvlNcHc9PJUWsuoej1d8swkYm0D3fU7h4H/2sCR zSGqJjlcE432FeQ9PoZs/EaOEpRUooSTTmLCze0/yS3hcE4NJgaA8kq+obyEtnctnHaD iEHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=fo//0I0AslshoYVyaZDmo1hPdJN5skuX2wqL7b4ff0Q=; b=m3s/o4UKrItTno+grBs5x554hoVRvbTw9nNT1d6ckWOVOLhQCn1CQcfDPx1YaIY5U/ wUR0qTIrpETpr4vf5i1nicmvpkLPYpBxW+WOB2cQ74tCuzSZpRcwxLLZMbe3EI+80i4l RcTZEcMLle6IFnQowabKJ1LVan2VIpw6ENZxRrJR9E2VmtgVjouqMJBeU6dBYZq3JQCR KFTj4WLAsTSXBcrEf9Rg0f+zIgGBxEYYi8Gfzf3XHZ6e7SR04saN5dlQs7IwJ4XQh2B+ VzzHZHm+s3d2XKu1Me7McxnC5ANScJtY8uX781mrdo3YlnGwkqw0hHdjr3l23Af7XMT4 T3yg== X-Gm-Message-State: AJIora+34Qly8WLF0UcN+eGG/Blc+TTsf5J2GLX+YkjikuWaPqxgWuLo YHg6JKMlksn+5EGw1Q9qDxABnSS4mhrBWw== X-Received: by 2002:a17:902:ff0f:b0:16b:db22:717c with SMTP id f15-20020a170902ff0f00b0016bdb22717cmr24466722plj.94.1657636676892; Tue, 12 Jul 2022 07:37:56 -0700 (PDT) Received: from ArchLinux (ec2-13-59-0-164.us-east-2.compute.amazonaws.com. [13.59.0.164]) by smtp.gmail.com with ESMTPSA id a12-20020a62d40c000000b00528d8ce7394sm6822670pfh.125.2022.07.12.07.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 07:37:56 -0700 (PDT) References: <20220712013125.623338-1-schspa@gmail.com> <20220712095325.408d1730@gandalf.local.home> User-agent: mu4e 1.7.5; emacs 28.1 From: Schspa Shi To: Steven Rostedt 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 v5 1/2] sched/rt: fix bad task migration for rt tasks Date: Tue, 12 Jul 2022 22:37:05 +0800 In-reply-to: <20220712095325.408d1730@gandalf.local.home> Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Steven Rostedt writes: > 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". > OK, I will make a upload for this too. > But other than that. > > Reviewed-by: Steven Rostedt (Google) > > -- Steve > >> */ -- BRs Schspa Shi