Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp421736ybh; Sun, 12 Jul 2020 10:35:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgygHQipaS3hCJ3t1ShTmVaK1uBTlmG3J/s3LHGj3FRkvnw++0ZiLqX0aYwRItj6Ef1809 X-Received: by 2002:a05:6402:b23:: with SMTP id bo3mr89584368edb.331.1594575331243; Sun, 12 Jul 2020 10:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594575331; cv=none; d=google.com; s=arc-20160816; b=dt9TRGiLbupXnAXgjK01nf2065VbyZUV9vtuxzenVIHq6busFhpQYjIUWdJW+ccX0D PDGB9s6/dhtRXxLBKk+Myj8C0PA6D1PcwWiS/z+LJCZkYS0FYr9v4w6SYhc7b65E3ZEk Ws4asMOy9+O2zxVN0+85VLSSlrkIkvTU/0fKF8yJ8LDfrHOKScgfNObeQoEF/AAqkFgt lVNrIoVgZVcgLT6XAIOCv5OtfBHesftOrL+SZ6mjfjL3ead4zYvmsH7ugKQiie/bgE+A P0n0S8sKvOBm8QmgYaa/JPy9acjLCkL+Ip4AZvXpflETc6VLE0d3ZIHo8JxDwFXLW0d8 1LMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0lZACZlm7hp7p3AuwMaMc3pMQx+Gf0OKUy9R5BwWajc=; b=FQGICcp53bsuib0kiDKyo1ZVmY9qH7KrPDGj4WzJhsOALhq8oZunQChD658eosll7W cVhSP3siVS4bfEl3Z2J64cF1XeHb3fvPsGU/EsuxehQDe6QpiYMAnscSWYahmLNY05b4 1tErQRoMb9vdIi9rcQ1mQokaFKbFTuvHdiqbk2oj3F1TxFoMiAmRb8wuNvlsDLMDkBUr oUEQ0SYXzcgG7CacUfUO+Tddk5rE4dequyliefAnK7btgtWWhd1y6RTm29egpvI/0nmp dQ1J4ReJn3xbHoYweDMr4t/dXeBy2zcDKb7lX2VDOBoS6l4KiJ9lH5h5DCiBqJqBkpNE mEFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=EpxDrpEA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si7953067edq.180.2020.07.12.10.35.09; Sun, 12 Jul 2020 10:35:31 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=EpxDrpEA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729315AbgGLRbR (ORCPT + 99 others); Sun, 12 Jul 2020 13:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729103AbgGLRbQ (ORCPT ); Sun, 12 Jul 2020 13:31:16 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0706C061794; Sun, 12 Jul 2020 10:31:16 -0700 (PDT) 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=0lZACZlm7hp7p3AuwMaMc3pMQx+Gf0OKUy9R5BwWajc=; b=EpxDrpEAuVkfls1cofHEt/ntsC hHzEneuO2eVxHcRPwBtIExjx8O4Z/1xHFraQYVBrYFT3o9pwMaPdtIuEVvVTD+GrePjU5HdJBDyLU ikdn0vwlBsmBCokv3BN6qLdTLdmkWygYGG9qmT0UvJOsGkjHujcq6vtI9ElBoFhqHTNjF3WyBpLHJ lLlsuggQuh8TTZAUo5T7erp/SKaCGf91TAcho55w0gd5+j89GqUA1Zv2tlS+FOPj9xigaGs5N8Gma Bf1E67MFWlMnvI+LHlTYI5GZ8VMDabrgeDnmRMoffKnq9ZjIEdICBMEIqXZOj8TsyHfEHn12gkl79 Ce8OXG8w==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jufoS-0002Yv-FD; Sun, 12 Jul 2020 17:30:52 +0000 Date: Sun, 12 Jul 2020 18:30:52 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: Naresh Kamboju , Joel Fernandes , "Kirill A. Shutemov" , William Kucharski , linux- stable , open list , linux-mm , Arnd Bergmann , Andrew Morton , Roman Gushchin , Michal Hocko , lkft-triage@lists.linaro.org, Chris Down , Michel Lespinasse , Fan Yang , Brian Geffon , Anshuman Khandual , Will Deacon , Catalin Marinas , pugaowei@gmail.com, Jerome Glisse , Greg Kroah-Hartman , Mel Gorman , Hugh Dickins , Al Viro , Tejun Heo , Sasha Levin , Oleg Nesterov Subject: Re: WARNING: at mm/mremap.c:211 move_page_tables in i386 Message-ID: <20200712173052.GU12769@casper.infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 11, 2020 at 11:12:58AM -0700, Linus Torvalds wrote: > Yeah, that's just the commit that enables the code, not the commit > that introduces the fundamental problem. > > That said, this is a prime example of why I absolutely detest patch > series that do this kind of thing, and are several patches that create > new functionality, followed by one patch to enable it. > > If you can't get things working incrementally, maybe you shouldn't do > them at all. Doing a big series of "hidden work" and then enabling it > later is wrong. I'm struggling with exactly this for my current THP-in-pagecache patches. There are about fifty patches, each fixing something that won't work if the page is a THP. And then there's the one patch which actually starts creating THPs, and that's the one patch any bisect will point to. But I don't see any other way to do it. It's not like I can put THPs in the page cache before fixing the things that won't work. This probably wasn't the kind of thing you had in mind when you wrote the above, but if you had some advice for my situation, I'd welcome it.