From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933289AbaE3Oc4 (ORCPT ); Fri, 30 May 2014 10:32:56 -0400 Received: from qmta05.emeryville.ca.mail.comcast.net ([76.96.30.48]:52214 "EHLO qmta05.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753504AbaE3Ocz (ORCPT ); Fri, 30 May 2014 10:32:55 -0400 Date: Fri, 30 May 2014 09:32:52 -0500 (CDT) From: Christoph Lameter To: Vladimir Davydov cc: akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@suse.cz, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH -mm 2/8] memcg: destroy kmem caches when last slab is freed In-Reply-To: Message-ID: References: Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 May 2014, Vladimir Davydov wrote: > When the memcg_cache_params->refcnt goes to 0, schedule the worker that > will unregister the cache. To prevent this from happening when the owner > memcg is alive, keep the refcnt incremented during memcg lifetime. Acked-by: Christoph Lameter From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by kanga.kvack.org (Postfix) with ESMTP id E88176B0037 for ; Fri, 30 May 2014 10:32:55 -0400 (EDT) Received: by mail-vc0-f176.google.com with SMTP id la4so2162742vcb.35 for ; Fri, 30 May 2014 07:32:55 -0700 (PDT) Received: from qmta02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net. [2001:558:fe2d:43:76:96:30:24]) by mx.google.com with ESMTP id ot8si3057653vcb.95.2014.05.30.07.32.55 for ; Fri, 30 May 2014 07:32:55 -0700 (PDT) Date: Fri, 30 May 2014 09:32:52 -0500 (CDT) From: Christoph Lameter Subject: Re: [PATCH -mm 2/8] memcg: destroy kmem caches when last slab is freed In-Reply-To: Message-ID: References: Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Vladimir Davydov Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@suse.cz, linux-kernel@vger.kernel.org, linux-mm@kvack.org On Fri, 30 May 2014, Vladimir Davydov wrote: > When the memcg_cache_params->refcnt goes to 0, schedule the worker that > will unregister the cache. To prevent this from happening when the owner > memcg is alive, keep the refcnt incremented during memcg lifetime. Acked-by: Christoph Lameter -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org