From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4E34281357 for ; Fri, 3 Apr 2026 21:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775250498; cv=none; b=TSbnLIforATj0AYaRCmouUt909zgc+9+x5gusDJKjv8tblNJP89JJm3Jw31JK2GD9OmOYP8EIWvduZgxICmZgbzKM/b9Tr2N8QsA8Y41wk4YnkXeUrfdflxOSGfVp0koIefTOEy18udb180ZnLXBo5CLYEUr5aaHj57WZ27oA58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775250498; c=relaxed/simple; bh=I8tohuZcRahx673UErYV2Hn9Vgzbci0ADmMnkFQg/RQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OtxjtTZOBqaCge6I2bkR4WPnCHbZI/F6oF9AvncDfG7kg4QgGTiQOSRsePGIkL+4aPR02q5s8dVk5nY7iLNf0azqpp2cRIgfQvkOb1kB4jXUdypRg4gPcKscHn1E1ylvsa/FcFF2WEgfbVxxH7gE6z9poEse8LhMQ9v3h1YHZRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=OLDCHDhm; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="OLDCHDhm" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Og+x/nsroRaCsOYz9oW3162oVhtAI20mFn7l4NfF7Vg=; b=OLDCHDhmNnGl9yCqiwpIzPBISI MJTfqvdFfHAyMz/Sd9UN6v2ryQKM3Qa6A4Io650ic9F1Ws25DtIFbPU46ZJA7OIe4MZDhjELV/lbH sUn9yCZbeTrnjnbiYTwgpYn3RrCfdp101RjV9OxzMECckfsNek+Zi8d7MDQr+uKOtyIL7p6uNRz9H V6x0K2YujN3jgWZ/csTHyqgoSL2JCtlsRBpAhAn9icgH8daurVj2hQKkMONow7qZ43vwqiOkkJELm P8Frw/kj3nE+oUjqG18pf6+kyY/+cOOQBpKiMFXBDPsfyZZe35C/3WKbyy0i99x2edOo68Gk2xu95 SEd5Cgvg==; Received: from 2001-1c00-8d85-4b00-266e-96ff-fe07-7dcc.cable.dynamic.v6.ziggo.nl ([2001:1c00:8d85:4b00:266e:96ff:fe07:7dcc] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8lkL-0000000F1ma-0DRK; Fri, 03 Apr 2026 21:08:05 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 2185A300346; Fri, 03 Apr 2026 23:08:04 +0200 (CEST) Date: Fri, 3 Apr 2026 23:08:04 +0200 From: Peter Zijlstra To: K Prateek Nayak Cc: John Stultz , LKML , Joel Fernandes , Qais Yousef , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Valentin Schneider , Steven Rostedt , Ben Segall , Zimuzo Ezeozue , Mel Gorman , Will Deacon , Waiman Long , Boqun Feng , "Paul E. McKenney" , Metin Kaya , Xuewen Yan , Thomas Gleixner , Daniel Lezcano , Suleiman Souhlal , kuyo chang , hupu , kernel-team@android.com Subject: Re: [PATCH v26 00/10] Simple Donor Migration for Proxy Execution Message-ID: <20260403210804.GE2872@noisy.programming.kicks-ass.net> References: <1515d405-62fc-4952-842f-b69e2bf192c0@amd.com> <20260402155055.GV3738010@noisy.programming.kicks-ass.net> <20260403095225.GY3738010@noisy.programming.kicks-ass.net> <1d2d4596-93d6-4d87-babc-084b8d6c2d98@amd.com> <20260403112810.GG3738786@noisy.programming.kicks-ass.net> <5e2337e7-24d8-4cc7-a86d-b8f5a19fb3ce@amd.com> <20260403143819.GC2872@noisy.programming.kicks-ass.net> <0f5b0dd9-ef6e-462b-ac89-6f37c4261241@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f5b0dd9-ef6e-462b-ac89-6f37c4261241@amd.com> On Fri, Apr 03, 2026 at 09:09:31PM +0530, K Prateek Nayak wrote: > > + /* > > + * We're being taken off the runqueue, cannot still be blocked_on > > + * anything. This also means that delay_dequeue can not have > > + * blocked_on. > > + */ > > + clear_task_blocked_on(p, NULL); > > + > > Oh! I remember why we couldn't do this - if we clear the > "blocked_on" via proxy_deactivate(), we might be delayed on > the owner's CPU *outside* of the task's affinity. > > In that case, we don't want to re-enqueue it there since it'll > violate affinity and the "blocked_on" relation forces it down > the sched_proxy_exec() path in ttwu_runnable() which will fix > it via a full wakeup. Ah indeed.