From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5045747B413 for ; Tue, 4 Aug 2026 21:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785879348; cv=none; b=l5bZ2WC0q5B4Y3jcbJt1tx2+MDhg5781vrfoCrnGMQDN5mf9xyzUq4Pjqr9TOPdqlSme2nOM5sSXxDpnHDf4EVJuuChjkbGgFyOpqyrdWcmKfg080Zw+ozPWf2VIP1K5yjnedBWZX3xmAKeJmTNcmdwTw9JwPAnFLWzQCe2kHe8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785879348; c=relaxed/simple; bh=dwcQ0xf/SdI8q7f4yUqmfMXSNwVIvYNuvj5PnvLO7gw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=HvOFt7QciUAuMt570CYD4NDOqeI7niziQH52DeHQlV3g+FcdPKzXWXeRHQH0gyV+NDN/GiRO404rS7o0jgY/yyKNu8K+hEEhHgS23oNlTSyMibSQdmIuD87mifR7M9T/L6+ZvgiqM0da6DYb8A2IhPsBiPFFcYUMKE1YW0RyRNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=g1KARa0h; arc=none smtp.client-ip=209.85.210.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="g1KARa0h" Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-84a3514f912so376125b3a.3 for ; Tue, 04 Aug 2026 14:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785879346; x=1786484146; darn=lists.linux.dev; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=5bYnpDQ6zlSv6ilwY+IJ9PnRIeS2oETKLqCHbQFwvVI=; b=g1KARa0hCyclSnWULil6ZwVZiXYfFZJOrnWjecri70g9E2okopvxjcdo/xq24AWKSf FSaxtnsg0UJ7uUyWvUbc+xjVT3Y4Tzr+IDTU1ZYvAfs7l8RoPEBUYHiHyP7SAnUjGheB isF4YGlaYlJRkWe9trjt9XIQ+f7qOCdMYckWeBQ9X4Ybi+U1UycWWFw4xyTXqoVkwPMX HodeoMw/+/YayYKvb+B7I0lgKzBQjFvVekqJjbbNGC9ZMDBNJbyeA+DIZHoy3ZP+qaaO 8lKuGtwrFcXKK0rS3HeaqPlyV43t+j7IqcRrSYQZWiWdBWEN7HowhPIEEnzl9I92Lq45 6e2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785879346; x=1786484146; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=5bYnpDQ6zlSv6ilwY+IJ9PnRIeS2oETKLqCHbQFwvVI=; b=oOG4JOtVQXvDNKXBy6T5CDoSkT+l4i+9ODqP/u3TFKrGmwRt25VQCyu9o0tfmzurzj DRMhOtuX1qbPEpd7P3+Qd31WAS0423PC8MOuut7uGNcnCOKj72wLUB+67g5m+TKhcWr1 ZjgP/DpC/VhR4pVxadB+F/4mPf1QgJoKhI9uWIqe6Nx+18yqv0/+V78Bd2XIBA+Fk/X2 9AjSHvXUAwsCMF8cVdqz+9oC16BgRE4CoHdjP6zd4hSC8YEJTK6Wb0fMZdzUNih+aLlu 9ucqJdMrfydTSzllHBJewLWtv1Ag3PmUHEjoM0wa2vm06BG4Tgcdws8Wj+noWighl3WQ DBKg== X-Forwarded-Encrypted: i=1; AHgh+RqFnX+1YKHVt/FQ5H+hCHMpc73tGGPaHSZruU6qdRANHxcOZObwoOv7eLP25YeQpRpeh8dkVir6YoTx@lists.linux.dev X-Gm-Message-State: AOJu0YzhNDW4a6ycIzw5XB6rrGVlFKvGJt5dUkqGsZvhmeTAlaQIVU/O gA4edDu4kd7vb/YK5S58FhAkUot4mlakNtIA05YCFj0sXHis4rYLKU1BaLBAmQh2P2EhHSLvwVg Dv+Yp1A== X-Received: from pfbkq9.prod.google.com ([2002:a05:6a00:4b09:b0:848:8808:ae6b]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:3d12:b0:842:708f:39be with SMTP id d2e1a72fcca58-84f2dff7a22mr1642518b3a.5.1785879346115; Tue, 04 Aug 2026 14:35:46 -0700 (PDT) Date: Tue, 4 Aug 2026 14:35:45 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <4460e252-b6de-4df3-bea8-0368a9d0f4ff@kernel.org> <60552bee-3326-4917-b00f-5fb7ba3b8adb@kernel.org> <99037993-ee13-4160-8c87-b6642faea554@kernel.org> Message-ID: Subject: Re: [PATCH v9 14/41] mm: swap: Introduce lru_add_drain_progressive() From: Sean Christopherson To: Ackerley Tng Cc: "David Hildenbrand (Arm)" , aik@amd.com, andrew.jones@linux.dev, binbin.wu@linux.intel.com, brauner@kernel.org, chao.p.peng@linux.intel.com, jmattson@google.com, jthoughton@google.com, michael.roth@amd.com, oupton@kernel.org, pankaj.gupta@amd.com, qperret@google.com, rick.p.edgecombe@intel.com, rientjes@google.com, shivankg@amd.com, steven.price@arm.com, tabba@google.com, willy@infradead.org, wyihan@google.com, yan.y.zhao@intel.com, forkloop@google.com, pratyush@kernel.org, suzuki.poulose@arm.com, aneesh.kumar@kernel.org, liam@infradead.org, Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Jonathan Corbet , Shuah Khan , Shuah Khan , Vishal Annapurve , Andrew Morton , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Barry Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Youngjun Park , Qi Zheng , Shakeel Butt , Kiryl Shutsemau , Baoquan He , Jason Gunthorpe , John Hubbard , Peter Xu , Vlastimil Babka , "hughd@google.com" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev Content-Type: text/plain; charset="us-ascii" On Tue, Aug 04, 2026, Ackerley Tng wrote: > "David Hildenbrand (Arm)" writes: > > Andrew wants to give it some more time in -next, so I'm expecting it to > > land for 7.3. > > > >> 7.2 or 7.3, then I would strongly prefer to base v10 on linux-next (where > >> the fix will presumably land soonish), and target 7.4 for in-place > >> conversion. Then v10 can be applied against an early 7.3-rcN and we don't > >> need to juggle branches (assuming Andrew is ok taking the proposed patch > >> through the KVM tree). > > > > Agreed. We'd also have to get the actual preparation patch into 7.3. I can > > send it out and coordinate with Andrew. > > > > Thank you! > > When we were discussing this earlier at guest_memfd biweekly, before > deciding to refactor out a function like lru_cache_drain_for_folio(), we > did say that the likelihood of actually draining in practice is low, > especially on a machine with heavy load making allocations all the time. > > I think the threads with Xiaoyao have resolved, I can put v10 out > tomorrow. Would it be okay to go with the following from v8, and then > clean up later when lru_cache_drain_for_folio() is available? No. > I'm hoping not to push this back by a full cycle to 7.4, Sorry, but we've missed 7.3, irrespective of the lru_cache_drain_for_folio() fix. Even if v10 is perfect, applying tomorrow means it will get ~3 business days in linux-next before I send pull requests to Paolo. That's just not enough soak time for land a 40+ patch series, even if half of those patches are selftests. > and also hold back other series dependent on this one. Eh, I don't think there will be meaningful impact in practice. If v10 is good to go, I'll get it applied on 7.3-r1, and will also get an early pull request over to Paolo (probably around 7.3-rc4). I.e. folks can start posting against the landed series shortly after rc1, and I'll have a set-in-stone base on which to apply more stuff around rc4/rc5. And if v10 has issues, then *not* rushing it into 7.3 will likely be the fastest path forward.