Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1416465pxy; Mon, 2 Aug 2021 00:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy2IlW4cLkjX0+7rc3/VHcyR1GD1OEJM7Mwt9B91AcSloKKffJnLECZWg3EEosLEErPOrC X-Received: by 2002:a92:cf4d:: with SMTP id c13mr286836ilr.300.1627889817842; Mon, 02 Aug 2021 00:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627889817; cv=none; d=google.com; s=arc-20160816; b=AuHxI3CCW66E+uS6eWRKEaNKuxeevBLyP+ldDa+NcEcxs6koJolWA5qaEThQ0FSJGj 700a2VO7v/wnG5FPsjAsGjgr0QGA50KtRqPLkCe0BQaWJ1XQ+whA8YQhTH7jc0jaCEoT iW6sU7C1C7cFlDa5aCmC0k2GSrSrPyZueUrBr3cjQ7f5ndoUQ2krnxWi5y6d13KBIpC4 fWTLVXXJ9V0Yl8YxNQNvaNTHzm/0pv69Mzs+apGabyCtMF2isBXN0spklH58KV6sQRBM ldzg/8uhuUKt/wy4rIFyhe9P/5odw9E3TJYNAXZdYf/RcPfLl6vaVKEyp5cR1aeJX5NM SL9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SCaO3zZA1UHyau/ywC+87QC/FW7k2c/cSKHE04W5tzg=; b=J3ljeRvun+KKApaTvGW5vswSmb9XIngFt+s4dTheklqGf+gQEFyfyZmZh6Yn5LfVie ny3/M0GWTfDLqOQXNT1MaTrYQoWJjOVGM1w9jewDl2uQM1lXeVklQcMAkkFkKDyVcDoO h///lhTeZzDRWZCzGswVLKWr/szxrb7X4gxkP8SsyjcRFjV4qdMaKzLgmuTSn7zONKNS B8RId3vaE4JsEceu+aXSHvC0QSkw5v2NUZDwXBgofqgkeqVHBMU3gYsSX+M8mo1lnJeY 0gRXtK4s8fkbRzOA5e8YyIPg6YCM9ROmzVJgdcpZ/fcBykeVVQQZETMLd4m8JE64KaCe BhPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="eo/vnmW/"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si10763873iow.58.2021.08.02.00.36.46; Mon, 02 Aug 2021 00:36:57 -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=@redhat.com header.s=mimecast20190719 header.b="eo/vnmW/"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232435AbhHBHgJ (ORCPT + 99 others); Mon, 2 Aug 2021 03:36:09 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43382 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232173AbhHBHgI (ORCPT ); Mon, 2 Aug 2021 03:36:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627889759; h=from:from:reply-to:subject:subject: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=SCaO3zZA1UHyau/ywC+87QC/FW7k2c/cSKHE04W5tzg=; b=eo/vnmW/L1BAeMY5vByqVqGdb46ajkelnYXqqsNPmaxv4mKnFcWoB7nfT/IcY/eGlRw97B aIAOzbXOynXyjD9ieSMEaIe9EwvCgJMkfXp8NJQt9v8zmmijr+c4u23rqIB6DA8XSiwir3 /W+EX8YwS7Rsvtebx70C57q06HbRwBs= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-4fxFYqDQPc--TkEdo59qug-1; Mon, 02 Aug 2021 03:35:57 -0400 X-MC-Unique: 4fxFYqDQPc--TkEdo59qug-1 Received: by mail-ed1-f72.google.com with SMTP id y39-20020a50bb2a0000b02903bc05daccbaso8258830ede.5 for ; Mon, 02 Aug 2021 00:35:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SCaO3zZA1UHyau/ywC+87QC/FW7k2c/cSKHE04W5tzg=; b=WAMzuEYoVLHHwGdAS6sM6LSya/SxTLffJNxoofWRavTqhvAO3ODI0YPmRRMdk+u4lp h4irxV9lMV+w9lrFF2h1PQrlZphTR74X93z//pXRaTzfJ7SQ8AxKL89ohw0+6rmRndWz 3kdSHqG/jzVMvfFlPjnY9U2U0tF0zFMHlpPtsjGUyt6QwJ8V3pmwIg1ZFSJZSSy2JD00 NxlUzDszwcziMIDzbcWr2dqr7wid6VONAT18ngr9agN1b0iMK7kF7tDtmr7djan4n8+D jVTPn2DPMIAhHgYRGr1sNzj5o7rccoxS0SpWHYy33S/6q1NQXmMnj3OBnP8/iCm+2QTe Ethw== X-Gm-Message-State: AOAM530NID6CsAhH1L8M8v6QNHYmahp5oDeKr/HzFnG63dTQYFaYFLSH 1iaNVTh5/cm6LPthhSCX5LVsVTpgFzOhQC9HGFyCu2vpR8SU7EsWylCnsxZegE/BhmOCFy3uRcH XcYQkf8S7RrlrwIGxCSXIghtw X-Received: by 2002:a50:ed14:: with SMTP id j20mr17333297eds.323.1627889756770; Mon, 02 Aug 2021 00:35:56 -0700 (PDT) X-Received: by 2002:a50:ed14:: with SMTP id j20mr17333280eds.323.1627889756565; Mon, 02 Aug 2021 00:35:56 -0700 (PDT) Received: from localhost.localdomain (an-19-190-136.service.infuturo.it. [151.19.190.136]) by smtp.gmail.com with ESMTPSA id y23sm4139350ejp.115.2021.08.02.00.35.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 00:35:55 -0700 (PDT) Date: Mon, 2 Aug 2021 09:35:50 +0200 From: Juri Lelli To: Peter Zijlstra Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, vincent.guittot@linaro.org, rostedt@goodmis.org, dietmar.eggemann@arm.com, bristot@redhat.com, bsegall@google.com, mgorman@suse.de, Mark Simmons Subject: Re: [PATCH] sched/rt: Fix double enqueue caused by rt_effective_prio Message-ID: References: <20210701091431.256457-1-juri.lelli@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On 09/07/21 10:33, Juri Lelli wrote: > Hi Peter, > > On 08/07/21 12:26, Peter Zijlstra wrote: > > On Thu, Jul 08, 2021 at 12:06:27PM +0200, Peter Zijlstra wrote: > > > Slightly larger patch, but perhaps a little cleaner.. still pondering if > > > we can share a little more between __sched_setscheduler() and > > > rt_mutex_setprio(). > > > > Best I can seem to come up with... > > Thanks for the non-lazy version of the fix! > > Makes sense to me and it looks good from quick testing. I'll be doing > more extensive testing and ask Mark (cc-ed) to help with that. :) > > We'll report back soon-ish. So, yeah it took a while (mostly my pto :), apologies. However, we managed to confirm your fix works great! May I leave posting it again with changelog etc to you, or would you like I do that (making you the author)? Thanks, Juri