Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp996153rdg; Wed, 11 Oct 2023 11:06:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENGR+ICuch+iqdfBTAife8RZw1v4SAe8EP50i6vCzJdV/ZrGHYzseQD639u2BW3q2uL5Ul X-Received: by 2002:a05:6a20:6a28:b0:15e:1351:f33a with SMTP id p40-20020a056a206a2800b0015e1351f33amr22784369pzk.47.1697047564226; Wed, 11 Oct 2023 11:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697047564; cv=none; d=google.com; s=arc-20160816; b=a1zQhI24XuWUTyHPyJD0yeqfi2B/CNgBFORAv18y+pHmVw2lR8a0wcHD/EzoccqApf +VdH67uguitMAH/3GtPWwmnyth6zl/0DsR1PnqGyEGxZgvrXV0YWqptaXvYWDsuV9wP6 0EMifr7iOaaGHeqSG0evyiJhiQJCSTi4fBGWR8t0v4dFbem69Fiy+YWRWzk38SreKe7u sMEJrkDUOQa+rzP4QUE4RfFLa29R1m88rfVcoILq7ZuT6WPSVsz9G4gGbuXu/c0umqlX tBMfm0X4uHf/vU2wzENNWPY8VvWAYFTygye6aLjT+/XbyFjbujMqHytezwfjMycXU6uG bwpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=CjATHd+PMfSbpzqzLwPd5xrtwunRsm3UnhcKphRYNsM=; fh=QdH+OOdB2h0ujpikTWUQcdi7YqmWCaFxA0dml90XUTQ=; b=Toq5mrMMRWEej0CQKlOrcliisTyCJrOgbwGruIu2BcowITec71D5VdsWrjo6dRcNG3 piEz+YZsThJYxOXJN6n72c4RITjVJTq+z+eXL1zbpO4wVer+1kD6irjwvNCjTPuikZS1 Bmo/wA7yqUIrqR4Bx1zBQYkP7/+liyl4GX6608ggL6MFGHTWqEwj2FitBTxJ2J0pFPgZ 3REHkaNnHB4oBel1xyknKZKck4CGDCH2iYOZTJFLXZND+F8FQF3AerACXYh/pY83S6sj tnhxwh9LMSD3yWkYgC5Lz0wfnall7qtzmetoZRkLqx4p/Ks5DDAMCOLbDVRsUJO8VCbQ eIOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=FVSrhZsE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e12-20020a63db0c000000b00578b40703bcsi284467pgg.885.2023.10.11.11.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 11:06:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=FVSrhZsE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6A5CB81E5915; Wed, 11 Oct 2023 11:06:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232689AbjJKSGA (ORCPT + 99 others); Wed, 11 Oct 2023 14:06:00 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 11:06:02 -0700 (PDT) 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!