Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753655AbcCATyv (ORCPT ); Tue, 1 Mar 2016 14:54:51 -0500 Received: from gum.cmpxchg.org ([85.214.110.215]:33228 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139AbcCATyr (ORCPT ); Tue, 1 Mar 2016 14:54:47 -0500 Date: Tue, 1 Mar 2016 14:53:33 -0500 From: Johannes Weiner To: Vladimir Davydov Cc: Andrew Morton , Tejun Heo , Michal Hocko , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mm: memcontrol: cleanup css_reset callback Message-ID: <20160301195333.GA22717@cmpxchg.org> References: <69629961aefc48c021b895bb0c8297b56c11a577.1456830735.git.vdavydov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69629961aefc48c021b895bb0c8297b56c11a577.1456830735.git.vdavydov@virtuozzo.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 558 Lines: 13 On Tue, Mar 01, 2016 at 02:13:12PM +0300, Vladimir Davydov wrote: > - Do not take memcg_limit_mutex for resetting limits - the cgroup > cannot be altered from userspace anymore, so no need to protect them. > > - Use plain page_counter_limit() for resetting ->memory and ->memsw > limits instead of mem_cgrouop_resize_* helpers - we enlarge the > limits, so no need in special handling. > > - Reset ->swap and ->tcpmem limits as well. > > Signed-off-by: Vladimir Davydov Acked-by: Johannes Weiner