From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756039AbcHCEH2 (ORCPT ); Wed, 3 Aug 2016 00:07:28 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37159 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751613AbcHCEHP (ORCPT ); Wed, 3 Aug 2016 00:07:15 -0400 Date: Wed, 3 Aug 2016 05:51:39 +0200 From: Greg KH To: Vladimir Davydov Cc: stable@vger.kernel.org, Johannes Weiner , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH stable 4.6+] radix-tree: account nodes to memcg only if explicitly requested Message-ID: <20160803035139.GB31125@kroah.com> References: <1470141934-4568-1-git-send-email-vdavydov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1470141934-4568-1-git-send-email-vdavydov@virtuozzo.com> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 02, 2016 at 03:45:34PM +0300, Vladimir Davydov wrote: > Radix trees may be used not only for storing page cache pages, so > unconditionally accounting radix tree nodes to the current memory cgroup > is bad: if a radix tree node is used for storing data shared among > different cgroups we risk pinning dead memory cgroups forever. So let's > only account radix tree nodes if it was explicitly requested by passing > __GFP_ACCOUNT to INIT_RADIX_TREE. Currently, we only want to account > page cache entries, so mark mapping->page_tree so. > > Signed-off-by: Vladimir Davydov > Acked-by: Johannes Weiner > Acked-by: Michal Hocko > Cc: [4.6+] > --- > fs/inode.c | 2 +- > lib/radix-tree.c | 14 ++++++++++---- > 2 files changed, 11 insertions(+), 5 deletions(-) Is this patch in Linus's tree already? confused, greg k-h