Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1142475imm; Thu, 5 Jul 2018 15:52:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcgLgYxWWLi7nTA42zqghZti7Bare3c9Azsikz0R5H1fG/WYR/fHFqz/63srDozsqQrlq9N X-Received: by 2002:a63:af14:: with SMTP id w20-v6mr1367286pge.47.1530831121714; Thu, 05 Jul 2018 15:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530831121; cv=none; d=google.com; s=arc-20160816; b=WnnW4kEbcswv8xxsudXc5kWac75dFnaDKCVNrJp3BG1Z8eO0LQs+0kKpsWdkppnmjP SiTTgVJciGoUWdhdCriTc8UaWhl1NTQnD3HGlF43OsNXClG9H/wdyAdeFQmkukuNfv3e yFPkNkEjexfi0HTJtO/dehTdIUX6hklPbqF9wSuBIJSn9YGkO+sMUvssCOF6+G0OLx3D gkFAGHJ6BREPnPDCR/N+Lz2XdtNsUqtlxJxXkvLuqfRpWBzU4EdPAHQ3t+E5RQRVUhVJ yclItctT0R7DOJ7rhg6ZOKjcnuoXhUy9r2SsZV2AD+K3bV7fwRad7jW7HrDFBWUInnqj G5BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Q7VaJiWgdb0a6EpA5yExE5KB45B5ojlH2oJR6Zhf1D0=; b=d//XCCGeQ4NmyUlK1YKQZTR9o6Mq99P4Q/ac8hq2G7vH3R1TUWi5Adxm5ZxNxH23xo uDCRiaLKl2usRjJUs5cSwjkN5ptFruIN/Bakvdxu7KfQc60pLuypR9W9rR1IwbZaJLHu lqrp1prKsjOdHkp38dWzcSVbZKU+W9bvAwdw87hTDTiCT7tx0gjbR2elrceoSWSpKCQU btpQFfqec/fjcum12mGvEXY4UH7I1Fwbl80RefADfLeJOJeke7SiClm1zLfGszcwRYXq 2xCm3RnFWHhxtJOSTxY9v+cHUJSMlT9A25rnxlranuuDseQ2MER7ww48/OozZk/jalNr WVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gPDpjGWa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23-v6si6478780pgl.275.2018.07.05.15.51.47; Thu, 05 Jul 2018 15:52:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gPDpjGWa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753357AbeGEWvJ (ORCPT + 99 others); Thu, 5 Jul 2018 18:51:09 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49530 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753002AbeGEWvI (ORCPT ); Thu, 5 Jul 2018 18:51:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q7VaJiWgdb0a6EpA5yExE5KB45B5ojlH2oJR6Zhf1D0=; b=gPDpjGWafzq/wx75O6GGeoD3n Q8GeqGxpkJ2WYyLiQySezqvGfMOQ3KW2aKV41bUQ/FvhR1HEF8MX0lAouDBTSosTcRtrksM1/5Cyw 9GfymHwpSTNHj7qKticYLmeVDFY7MzTne6oLg2dFvcrq+510SDLVCFEfc6c94Tu7Mh2VwcHPU5IEF bM5HeG/XDtHfS32eY4AEZ7/FOOKFhD/jZGO9IV18Xq6yJf9AgeHm7cEt1maiLcPPz8Lue1GI4QBjl 4rLr00JnMjzZCBkA1ET/0qYdD+9GG20F8N4KaMQqfo1ljWdbmuOTItwyU84bhJ15XP72adLBhb0CV WbnEC172Q==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbD4e-0003EI-AF; Thu, 05 Jul 2018 22:50:04 +0000 Date: Thu, 5 Jul 2018 15:50:04 -0700 From: Matthew Wilcox To: Andrew Morton Cc: Kirill Tkhai , vdavydov.dev@gmail.com, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, tglx@linutronix.de, pombredanne@nexb.com, stummala@codeaurora.org, gregkh@linuxfoundation.org, sfr@canb.auug.org.au, guro@fb.com, mka@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, chris@chris-wilson.co.uk, longman@redhat.com, minchan@kernel.org, ying.huang@intel.com, mgorman@techsingularity.net, jbacik@fb.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org, lirongqing@baidu.com, aryabinin@virtuozzo.com Subject: Re: [PATCH v8 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg Message-ID: <20180705225004.GA26479@bombadil.infradead.org> References: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> <153063056619.1818.12550500883688681076.stgit@localhost.localdomain> <20180703135000.b2322ae0e514f028e7941d3c@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703135000.b2322ae0e514f028e7941d3c@linux-foundation.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 01:50:00PM -0700, Andrew Morton wrote: > It should be possible to find the highest ID in an IDR tree with a > straightforward descent of the underlying radix tree, but I doubt if > that has been wired up. Otherwise a simple loop in > unregister_memcg_shrinker() would be needed. Feature request received. I've actually implemented it for the XArray already, but it should be easy to do for the IDR too.