Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1123099rwb; Fri, 18 Nov 2022 13:08:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4oCNeu2UDRRb3Wo3oAHuFhglhwrateRYzzG2AfIQAj2+UW/pNhu7y0RPDr/8152fzhaoTe X-Received: by 2002:a17:90a:3f89:b0:217:90e0:3f8c with SMTP id m9-20020a17090a3f8900b0021790e03f8cmr15443932pjc.192.1668805721630; Fri, 18 Nov 2022 13:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668805721; cv=none; d=google.com; s=arc-20160816; b=zc50c8Iw9RuriaIudTLPRWud0BoQLUswhfPlWQ65Ysds3S6UPkBALXw+Xmhp10le+T k9OC3wSipCRyEbLtoTdKGJ3xCh6XNKxjQPYhYcdtM3n1U/DbevSjvpDqaqCvfp7lfN54 Qn2HsPWS5bcXNn0Y0WECHN6sT79S6N3K34psXaImjc+VHjYsXVOJGe2b20aYi+pJGwVb T127c/CMC0oVFvTm17JtV9ma3s4csAk0b/8k7rmYL6YxGKGkha2JPNONudH3L/sNhyoP PywImCEx1nk/t32kfRhc44YkP8lVsPG+kyOSq960Cs1zPwPfw80bLIZZWEag1TfX6MPj K15Q== 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=sf7AnfznU4wpG+Kk6IbaTpUBZR9RJxDoBtRddMUUBJo=; b=rzdiA69y/R1uVQyogMj2kU/nLoWvJODOaD37uOfQ9aldk4PLJP793LmGuZid25/Th7 gawOFkrgQfZXe2sLKexLfa2WAYY4bQASVPawhJ+hGliFMLjcDh3GUpCigGnvNmETZzys ozA0zLLa2KcHtH+TTJbfNc54CiL5k46yK9PvOE43uA/mggv5XMKlwwN3xfFyXyFyX7Y+ uYdX0Cbxvev3Gw18jEoVhaTEcQoao3ZiUYkhskrmyiuNyAdnr+97YKkOKASnNtwjBLb5 X5Wj4xw6ljPzS95gCKoamneqRV5RQWx2QzzFFn2OXuphxlNQogxPxzkVfvGvYJ1sy8rA zpmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=FES1xXie; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170903028300b0018725be1285si3698035plr.558.2022.11.18.13.08.26; Fri, 18 Nov 2022 13:08:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=FES1xXie; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230171AbiKRUmP (ORCPT + 90 others); Fri, 18 Nov 2022 15:42:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbiKRUmM (ORCPT ); Fri, 18 Nov 2022 15:42:12 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC7F42F6E for ; Fri, 18 Nov 2022 12:42:11 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id k2so4269615qkk.7 for ; Fri, 18 Nov 2022 12:42:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=sf7AnfznU4wpG+Kk6IbaTpUBZR9RJxDoBtRddMUUBJo=; b=FES1xXielCjlnU6nLLldQEL7U2LyKYg1uxJTFr/GHH3B43OI8ULbeBCd+4HULwGryt vSwxYFI1KCbtJ8ADiTxJMB64OUCQYgbdh0vlWDIhaUnkUEwVnAV+y24UYJsMYw4DE97E icSKqZ75UtIOoOnVdsPsPcr+0z4Gwgx3VRgv2HGC2ODsgPjHvbkGwNmvoP4MukQ9bpVg A8vMxqwRKM6nYoAyRrYUGBUV1IEVEH1CXXFu51bSgDA3pKV6fVJIJ5FBYyB68RknlRpj VBF8E5jWP8VzZmKQIU95/5r4V55nleUnmtGI2ubjLBOoOM9v51r8qprmEH0VCZQNKBdb wLlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sf7AnfznU4wpG+Kk6IbaTpUBZR9RJxDoBtRddMUUBJo=; b=PLSvTN4L1txkaXZnfQJkcFfzW3HjV6329CKw3JFmkehTs/yNjOFnmEQHIu+2CNaQMo 0TBTmpe3ZZ8wm6EYl+J9XE5vYBYD3d5622H9aj+kC3W1UE6PAVtPS1L4PkiAcGbEzR0O kuehy5NUWGZK/yVhZN5zE1jpjXJ/6CH0MGLfdPkIzYG6TkmVC3lD79y4WbCoC60vtB8K Gd6Qg50G/yGcO04ACmlOKo/I9JZv0RFdKc4uRNUB8AV5o5wGdpz/Y5D51pf5JvDSprw0 MklPsvNmO+86eWU5elSR3uKq4Kk5FgGz4zeW+NwNjPR5YPKalwna8Toq4MbHcG+VHAzS 8BpQ== X-Gm-Message-State: ANoB5plAaqWYRTP69oaufVkmoBvuVzS7bgMDf2Nn8j7NWUDeT1nbIQhl kQoGJnWe3ebzpz/7Cun85I6i0w== X-Received: by 2002:ae9:c010:0:b0:6fb:84ee:ab84 with SMTP id u16-20020ae9c010000000b006fb84eeab84mr7534695qkk.152.1668804130921; Fri, 18 Nov 2022 12:42:10 -0800 (PST) Received: from localhost ([2620:10d:c091:480::1:bc4]) by smtp.gmail.com with ESMTPSA id bn39-20020a05620a2ae700b006fa16fe93bbsm3037356qkb.15.2022.11.18.12.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 12:42:10 -0800 (PST) Date: Fri, 18 Nov 2022 15:42:34 -0500 From: Johannes Weiner To: Linus Torvalds Cc: Hugh Dickins , Andrew Morton , "Kirill A. Shutemov" , Matthew Wilcox , David Hildenbrand , Vlastimil Babka , Peter Xu , Yang Shi , John Hubbard , Mike Kravetz , Sidhartha Kumar , Muchun Song , Miaohe Lin , Naoya Horiguchi , Mina Almasry , James Houghton , Zach O'Keefe , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/3] mm,thp,rmap: rework the use of subpages_mapcount Message-ID: References: <5f52de70-975-e94f-f141-543765736181@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18, 2022 at 12:18:42PM -0800, Linus Torvalds wrote: > On Fri, Nov 18, 2022 at 1:08 AM Hugh Dickins wrote: > > > > Linus was underwhelmed by the earlier compound mapcounts series: > > this series builds on top of it (as in next-20221117) to follow > > up on his suggestions - except rmap.c still using lock_page_memcg(), > > since I hesitate to steal the pleasure of deletion from Johannes. > > This looks good to me. Particularly 2/3 made me go "Aww, yes" but the > overall line removal stats look good too. > > That said, I only looked at the patches, and not the end result > itself. But not having the bit spin lock is, I think, a huge > improvement. > > I do wonder if this should be now just merged with your previous > series - it looks a bit odd how your previous series adds that > bitlock, only for it to be immediately removed. > > But if you think the logic ends up being easier to follow this way as > two separate patch series, I guess I don't care. > > And the memcg locking is entirely a separate issue, and I hope > Johannes will deal with that. Yeah, I'll redo the removal on top of this series and resend it. Thanks