Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3523460pxb; Wed, 13 Oct 2021 07:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRGn8bbNeePyPtE3dH+9nMXh/oB5ATgJg7CluDy2aEY7mMMd6flxY8+O1P3M8C6+aUpDiY X-Received: by 2002:a17:906:c18d:: with SMTP id g13mr41101149ejz.518.1634136212836; Wed, 13 Oct 2021 07:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136212; cv=none; d=google.com; s=arc-20160816; b=KMF+XMTnpvIHuX6ZzphaeqmZJCzq/Gn+3FpM7QaX5XYeimTh+2Llf0i119MbDua6Eq e+Y+0Na90eFNl8FJowrpPQks+fIYJPwO8JOcLYhU+qLAfhl+pwSXJu4/tSB878Oa/wzv amw3rCWtk7ps8isLdGaixFfn+DdAOTtC57rgiv/eL8ygZDVbdt5+FgtqOmAv8frWmBsj Zd2Fo3OMqjuHuTNnBP8+Aqg8P4bafC2IcQZ7k7/PVamVZf6ZXlq/n3GAm5hrzblw5pXs YnMqV64Mpafxhv2yy/05J5fHnw8hd9TlDzNOmCmku07+CA+PkAHku0Gm4cG2597Ml4Gy l4cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hWjI5Tz5XS1VTE5npqHgDWB1ZpB318WTRerazdffcaQ=; b=mnyKVKuf10kta911zRYFa2EOYY6vFEmFpndFTQAYfXzHWaAB0unh/s9fJO8tB1/54e yRSOJFicadsizI5qzYhR4mc0Wv812Y/NsGlUp+cAws4Xb8jpQ6OOc0sRS4o+HbSlt43g NuW2DawVytd+xNr1ZLx/iqox/MNQxtsS3GyHXmGmUYMR8fm3chxoo+Qr3F7c7nsL0Wrn grcKXIvWePY7nr1u3csq6drAnThOKRu5znLzw/GAFn5eWZC83D6XNu9A1ehRlC52Ael9 CwOzAVzkjiH4HyrWTYovHWWZLBsz/LE9ehg6M9T5926iniOkFMo+cjaxCh1RQLq1mkHV xT8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=j51RubDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz21si20719261ejb.539.2021.10.13.07.43.06; Wed, 13 Oct 2021 07:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=j51RubDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236942AbhJMOlJ (ORCPT + 99 others); Wed, 13 Oct 2021 10:41:09 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:48086 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbhJMOlG (ORCPT ); Wed, 13 Oct 2021 10:41:06 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6F4E821983; Wed, 13 Oct 2021 14:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1634135942; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hWjI5Tz5XS1VTE5npqHgDWB1ZpB318WTRerazdffcaQ=; b=j51RubDuioGfP1sJScdghFAyWtCz3Be3evD8eHu71hqNwJdwBSxAulbL0eukekIjoSdV0V uu+wiyfYvXDaTWnzfTtxJa1bzeD8Hc747OBQd2SNC6I9+izYUDk/MS8irMRJpH6mRShNi6 5twVUjN/LZJFDMTsVl5cBARoFqKxc2A= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3FE5613D04; Wed, 13 Oct 2021 14:39:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id P/8ID4bvZmE1VgAAMHmgww (envelope-from ); Wed, 13 Oct 2021 14:39:02 +0000 Date: Wed, 13 Oct 2021 16:39:01 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Odin Ugedal Cc: open list , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira Subject: Re: [PATCH] sched/fair: Use rq->lock when checking cfs_rq list presence Message-ID: <20211013143900.GB48428@blackbody.suse.cz> References: <20211011172236.11223-1-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 11, 2021 at 08:12:08PM +0100, Odin Ugedal wrote: > To be 100% clear, this can only happen when a control group is > throttled while it has load > (cfs_rq_is_decayed(cfs_rq) is false); and then its unthrottling race > with its deletion? > Is that a correct understanding Michal? Yes, that's my working hypothesis but Vincent found a loophole in the proposed fix under this assumption. > Do you agree that that will also solve the problem Michal, > or am I missing something obvious here? It's not easy for me to verify this with a reproducer and as suggested by your discomfort, let's dismiss this idea for the time being. Michal