From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41DAFCDB474 for ; Wed, 11 Oct 2023 18:06:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346382AbjJKSGB (ORCPT ); Wed, 11 Oct 2023 14:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234700AbjJKSF6 (ORCPT ); Wed, 11 Oct 2023 14:05:58 -0400 Received: from out-195.mta1.migadu.com (out-195.mta1.migadu.com [95.215.58.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 375119E for ; Wed, 11 Oct 2023 11:05:56 -0700 (PDT) Date: Wed, 11 Oct 2023 11:05:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1697047555; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CjATHd+PMfSbpzqzLwPd5xrtwunRsm3UnhcKphRYNsM=; b=FVSrhZsEnpEzGL5LUXJSsCuoYcWSLHxZ91rxb2HjIW75WtaivZUfJ3G8PuwMEfpEv55i3Q l3YKiu1gw9A9dJLekGsmIZJggKjIJbRYNce49GtNxWIVUrdfNhuuM73T5BmVTJr0N++w3h SU9mAOIxwVJXyMN7t/kFnefWd8IJoBg= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Shakeel Butt Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Johannes Weiner , Michal Hocko , Muchun Song , Dennis Zhou , Andrew Morton , David Rientjes , Vlastimil Babka , Naresh Kamboju Subject: Re: [PATCH v2 2/5] mm: kmem: add direct objcg pointer to task_struct Message-ID: References: <20231010000929.450702-1-roman.gushchin@linux.dev> <20231010000929.450702-3-roman.gushchin@linux.dev> <20231011180101.o2ha6awrupojcu6h@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231011180101.o2ha6awrupojcu6h@google.com> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 11, 2023 at 06:01:01PM +0000, Shakeel Butt wrote: > On Mon, Oct 09, 2023 at 05:09:26PM -0700, Roman Gushchin wrote: > [...] > > +static void mem_cgroup_kmem_attach(struct cgroup_taskset *tset) > > +{ > > + struct task_struct *task; > > + struct cgroup_subsys_state *css; > > + > > + cgroup_taskset_for_each(task, css, tset) { > > + /* atomically set the update bit */ > > + set_bit(0, (unsigned long *)¤t->objcg); > > task instead of current ?? Oh, right, of course, good catch! Thanks!