From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20AB7C531D4 for ; Thu, 23 Jul 2026 14:18:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1C5EF6B007B; Thu, 23 Jul 2026 10:18:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 19D686B0088; Thu, 23 Jul 2026 10:18:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0669C6B008A; Thu, 23 Jul 2026 10:18:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id C99CA6B007B for ; Thu, 23 Jul 2026 10:18:11 -0400 (EDT) Received: from smtpin25.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5416FC0523 for ; Thu, 23 Jul 2026 14:18:11 +0000 (UTC) X-FDA: 85020245982.25.F8E73C4 Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by imf22.hostedemail.com (Postfix) with ESMTP id 9560AC000D for ; Thu, 23 Jul 2026 14:18:09 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of vbabka@kernel.org designates 172.234.252.31 as permitted sender) smtp.mailfrom=vbabka@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1784816289; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UfiTlkqUJL8snJZ5Dsl8oDcXyp4LYeNIIi/q/akZuTw=; b=VNUzR5hOY0gvGQsnb+QJOOHvQTDpGPcdgQFSfDsozsBn9xPthe5o+rlPsTywlrbCcTDIGE eOHg2S8sdZMgrSJ0JDtY8crjlKvHKMMnKTBSFDPn0q579NCmxXv52fXkV8NFVMblt8saam L9qP8/lpXC67XTRTLpRuOGzIc7uda+8= ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1784816289; b=Di1OevPedUPztXTHUqRvDPCn0nphFfYSOfZITSh/TcEBoPOq5hy5Az8zouoWN36YDk69cA tsPcj8Cg5yUEwfwE5oSXG2zs4ELFDd1/Dm0ikd1v78odwL+a2DV9dXqB9LuhKw4Vf8bt8g L7YjuK3QM6R0VRAvcCMvCL1aFqDhosM= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of vbabka@kernel.org designates 172.234.252.31 as permitted sender) smtp.mailfrom=vbabka@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 9B29E41FC0; Thu, 23 Jul 2026 14:18:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C0131F000E9; Thu, 23 Jul 2026 14:18:05 +0000 (UTC) Message-ID: <00bb7fd0-998b-49f0-9941-cc4d796a8751@kernel.org> Date: Thu, 23 Jul 2026 16:17:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/4] mm: page_alloc: fix non-movable reclaim storm in defrag_mode Content-Language: en-US To: Johannes Weiner Cc: Andrew Morton , Greg Kroah-Hartman , Sasha Levin , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Zi Yan , David Hildenbrand , Lorenzo Stoakes , "Liam R . Howlett" , Mike Rapoport , Shakeel Butt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20260722150006.3848560-1-hannes@cmpxchg.org> <20260722150006.3848560-5-hannes@cmpxchg.org> <20260722162207.31a2c491ffaf36d1e8948c14@linux-foundation.org> <67e1219e-9d47-4a30-a8dd-fdcf03229f58@kernel.org> From: "Vlastimil Babka (SUSE)" Autocrypt: addr=vbabka@kernel.org; keydata= xsFNBFZdmxYBEADsw/SiUSjB0dM+vSh95UkgcHjzEVBlby/Fg+g42O7LAEkCYXi/vvq31JTB KxRWDHX0R2tgpFDXHnzZcQywawu8eSq0LxzxFNYMvtB7sV1pxYwej2qx9B75qW2plBs+7+YB 87tMFA+u+L4Z5xAzIimfLD5EKC56kJ1CsXlM8S/LHcmdD9Ctkn3trYDNnat0eoAcfPIP2OZ+ 9oe9IF/R28zmh0ifLXyJQQz5ofdj4bPf8ecEW0rhcqHfTD8k4yK0xxt3xW+6Exqp9n9bydiy tcSAw/TahjW6yrA+6JhSBv1v2tIm+itQc073zjSX8OFL51qQVzRFr7H2UQG33lw2QrvHRXqD Ot7ViKam7v0Ho9wEWiQOOZlHItOOXFphWb2yq3nzrKe45oWoSgkxKb97MVsQ+q2SYjJRBBH4 8qKhphADYxkIP6yut/eaj9ImvRUZZRi0DTc8xfnvHGTjKbJzC2xpFcY0DQbZzuwsIZ8OPJCc LM4S7mT25NE5kUTG/TKQCk922vRdGVMoLA7dIQrgXnRXtyT61sg8PG4wcfOnuWf8577aXP1x 6mzw3/jh3F+oSBHb/GcLC7mvWreJifUL2gEdssGfXhGWBo6zLS3qhgtwjay0Jl+kza1lo+Cv BB2T79D4WGdDuVa4eOrQ02TxqGN7G0Biz5ZLRSFzQSQwLn8fbwARAQABzSNWbGFzdGltaWwg QmFia2EgPHZiYWJrYUBrZXJuZWwub3JnPsLBsAQTAQoAWhYhBKlA1DSZLC6OmRA9UCJPp+fM gqZkBQJqFFy6GxSAAA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mO4ZHuahKtQgZNsMYV+PGayRBX9b9zbldzopoLBdqHc4n jQARAQABwsF8BBgBCgAmAhsMFiEEqUDUNJksLo6ZED1QIk+n58yCpmQFAmfIHFQFCRYU6J8A CgkQIk+n58yCpmS2PA//bqN1LfcotmArgElsa+0EGZSQlYgK48pm8WAeTXTngudP9IJ4SuKY HR5RNjHcBeqN+Me0zxRqYzRb8nGanHEkDyf4Im8DQM8d6vbyU+FcPmG4skud4kgS1zMHnlVd SXfSIwKC/hKgdHG8aBV7545Lz9X6Iohea+94wneD0aw/hqF+QWewGZhWJriWAZtvEkzNjQOi 4U9F/trLten/x7bpphDSnDMKJtITbtzATT1Dq7o7VpIUK1nCTQALMuMjKCdi8OdU/+V+R3O4 0PXWvX8qrvqYapVbZ+9KqT74FsuB0Ya9uXwgBF2Q6cRuETZk5vqaqKxzqoQZCO8AOz/58j6O 2RHNy/mZEN+7tJ5Tsq42zVJ4jxsT8b9YplavCMsnBgDeRWhcbYhCyttoL7nYISyWg4kQYZ/P wIV3OuNv2f8iKYsxNsRuClOAF82+gvqOy1/1pprFjy8uo2pkoOrb63aOP3vO5VHnRKgra6dq NcaZ+c6J4H+nEJGi2SkHAUJz5oBzuThvPudLvPA/SK8sKoM01IRxSihev/S/5WLazXB1PGem OCbvzC1IjWJJraxiDJ5IygokapUa2RP7+WBR22skQ3SSl6G107QgWKSyTOGWEaRmV53vxQLV jXuCmzSSasTL60zq5yGrT4/DYQVSNEUiUbG4pYekxJujNeEDkUlky0Y= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 9560AC000D X-Stat-Signature: aofzekpaahakjpj9r34qxfowhj17fe79 X-Rspam-User: X-Rspamd-Server: rspam02 X-HE-Tag: 1784816289-696858 X-HE-Meta: U2FsdGVkX18ECecPkRUK5n9SfiTTMO3Q4F29W0wR7wJyaKfWQvP7D7gKEzTFc4/ra0s577/e/gSwLPYvqRzO9PkbeFXjfrqJdippPm78ik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W3zbiWjG1kR8A7QJovACNrPrlFzFK1al51oVaEqci3L0ROoe0tDOjA4nkjsz1oZlrazb9dsNjCyxpbiPyHO5hOJ1YJ1Z/VGg6hY658ymvijfTl Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 7/23/26 16:08, Johannes Weiner wrote: > On Thu, Jul 23, 2026 at 12:22:58PM +0200, Vlastimil Babka (SUSE) wrote: >> + Greg and Sasha >> >> On 7/23/26 01:22, Andrew Morton wrote: >> > On Wed, 22 Jul 2026 10:56:47 -0400 Johannes Weiner wrote: >> > >> >> >> >> Fixes: e3aa7df331bc ("mm: page_alloc: defrag_mode") >> >> Cc: >> >> Signed-off-by: Johannes Weiner >> > >> > This cc:stable fix doesn't apply to current mainline because the >> > preceding non-cc:stable patches get in the way. >> > >> > This means that the -stable maintainers will have to ask you to redo >> > the fix to make it backportable. And you'll then be preparing a patch >> > which hasn't had standalone testing in mainline. All very cumbersome. >> >> Or they backport the whole series, even if only 4/4 has a Fixes: tag. >> >> > So is it practical to make the fix come first, as a cc:stable hotfix so >> > we can upstream the other patches in the next merge window? >> >> I think it can't come first, it's simply a complex fix that can't be done in >> a single patch that would be reviewable. 3/4 is certainly a strict >> dependency. I'm not sure if 2/4 as well. Perhaps 2/4 does deserve a Fixes: >> tag and Cc: stable on its own, as it also fixes a defrag_mode deficiency. > > Yes. Only 1/4 could be argued away. > > 2/4 actually came after 4/4 during development. Without it, compaction > cannot make sufficient forward progress on the promoted non-movable > requests. So it is a hard functional requirement. So that's the tricky part then. If it's a hard functional requirement for 4/4 and yet leaving it out results in no conflicts when applying 3/4 and 4/4 (as it indeed seems so, based on my local test), then it's quite possible stable folks will figure out themselves they need 3/4 as a stable-dep-off: 4/4 but won't backport 2/4, unless you act quickly enough on their mails. > Whether it deserves an independent Fixes: depends on how many > GFP_KERNEL pageblock_order requests we have :-) I'm guessing not many. I don't know how else to indicate it though. It's kind of a co-fix with 4/4? >> > (An alternative would be to put cc:stable on all four patches. That's >> > a bit abusive but we do it rarely). >> >> I don't think it's necessary, the stable team are quite capable of figuring >> out the deps and backporting them with a Stable-dep-off: tag. IIRC the >> "fake" tagging is discouraged? Maybe they can clarify. > > Yes, I *think* it should work with tagging just 4/4. > > It won't apply cleanly or build without 3/4. So I'd assume if that > dependency is lost, the automated backport will bounce and I can send > a backport series by hand. The way I see if often happen is that Greg sends a mail that it bounced and soon after Sasha replies with fixed up version/series. Which could very easily be 3/4 + 4/4 without 2/4.