Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp992176rdg; Wed, 11 Oct 2023 11:01:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZweE/CQ6CK2xMgdrhptl6WDo1TYJpHZrojWbejYePoBdZyuy7bpOH7xsF1fwGQbGGfMFD X-Received: by 2002:a05:6a00:1506:b0:693:3fa0:5ffb with SMTP id q6-20020a056a00150600b006933fa05ffbmr26179666pfu.21.1697047279222; Wed, 11 Oct 2023 11:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697047279; cv=none; d=google.com; s=arc-20160816; b=bfxtHJD3uG3ApY5kojXOEx3bEQE3ZG9cE+ftI+WvXTfUYYNegqpMSS+ZMRVBIvpw66 YjVf0/P5kp/iiMqayk4g97xsyBXvZ3vbdTYLjTiHuIXyKrMz8ywHPASsw5QiTsC68QzQ E+zUtyi99rQc2Z4Iy+3znq0agd2eh2xl9/5PbOWgpiuN3z57QFc3sI9RuiO0b3XoZwq5 UpqnptBjLo+QDMaxas2Gw5cGzhFNSKLUAsidHroK+GqdA3y0Pop87jVgeVbIskw9YwWn mhKNXsh3Lv5/8S5pgb6NV0hGcwfniFUGIjRVy7g2fulBT+xruxF9Xv9kwF4GMUi5T/Zd rPGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=C+DWGMBxP+X45X3NzNtwuI8J+qvPFiJhuYh3mGuN+4Y=; fh=5yJCFl0E4GBItsE5gnZmBCRQCw2sx236sRuDrmal1bw=; b=haNbDiYk28UUT4IUqS4FBv7bZJIVQ49ioO52SeFv1fwShoftkCGsKbv00BR+ee298c QwG67fLMzW+4DcKzrRJx4CQMRZfAVhiUrQ0EPLh0EiKaQ+5V5pmXwhUegpygDvx7BWff GWdcTFr63NnJ6JVYkzyo6PoqZbSrDA6+TH7bKOh9GzoM0VmGFp3I3PVNF4I9Ih1KEJZu OErhVEKzj12TTh5KKCNmaGVlbmu6J3DXuBkIYvzxyuukFb6FCMyu0m/e0Pi0oSzHeHcb IAfHwjiBZe068y+uRPaIkOWnXhH/JiyMshfsDE0nFL03X+1l2MDofE6FBPK0NXfCKvB7 lmqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NtXkhzo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id s3-20020a656903000000b0058ae63187e5si261474pgq.830.2023.10.11.11.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 11:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NtXkhzo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 79623806D83F; Wed, 11 Oct 2023 11:01:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbjJKSBK (ORCPT + 99 others); Wed, 11 Oct 2023 14:01:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232952AbjJKSBI (ORCPT ); Wed, 11 Oct 2023 14:01:08 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCB5194 for ; Wed, 11 Oct 2023 11:01:04 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-58530660c1bso54093a12.1 for ; Wed, 11 Oct 2023 11:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697047264; x=1697652064; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=C+DWGMBxP+X45X3NzNtwuI8J+qvPFiJhuYh3mGuN+4Y=; b=NtXkhzo6LO2lFL/WcUETASNsHUREqn0/g5VAmIBc3Th67by7Aqwow9qnRpP12DMhck Lgo7PQhBMShJLySxuUI0Q+QnYt5hLCup2bPP/1krjLbWeVS1GP5pV/8LZrsFFVr8aHl6 M6bv1pEac7nI5wL5myKe6lVHFHa/qABoe1kyGnc6aXkxwG4/v/4uDd82yzBEBAQ0H32d xjw2aq79HerVBvpMgjU+o/h4qdQD8+lUCP7clsn95QVavxtE9PmjCXRZ/6mkD0n976uM ne3PZniVdhjo0nFlLcYUfjiqxAT+vGtr9gvBbVTS5O3DU8+vIhJdutDXdkVS1Pgh7oml +R1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697047264; x=1697652064; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=C+DWGMBxP+X45X3NzNtwuI8J+qvPFiJhuYh3mGuN+4Y=; b=VAhqO3SKFgY2NBS2ykZBkFMp/dEM7CIZT3Jir9iPqpIgUGmiKTcDV+thPcT/RTTItK nfmYI1nNu4ZjnlqrrTTA7gZPoBehaQwjxgtI6fW89Ooot2hngIfqC4TVjTlmv5fXzeBy l/m2gIp6DmVzTcXsGKuOMZtdsVz6XTJUEZl6oYj4eE+cT8OIEAkX85m14Ndj0WkSo7TJ EC8zPuKyXy71v1xTSvpNfUuFsGCHW3kfyDpyOip08B/LoCvK1tQwFsjS0vVA8mH1vzKw 0ledZ/E36nherhHAY+Rf1/SoIa8pQYmojneGA1pNDdjro+xDxGeeTyjFMYP8qDxDPoW2 gAow== X-Gm-Message-State: AOJu0Yyj5eKJlIIHlSzgjPW6tC9rQsSem/1QCy3HcbVTgqR/SksIQSiq ZHpY9Fd4e2pTfHLwS02geIzHOLjSkw4Ysw== X-Received: from shakeelb.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:262e]) (user=shakeelb job=sendgmr) by 2002:a63:704d:0:b0:581:8024:fe01 with SMTP id a13-20020a63704d000000b005818024fe01mr330395pgn.3.1697047264093; Wed, 11 Oct 2023 11:01:04 -0700 (PDT) Date: Wed, 11 Oct 2023 18:01:01 +0000 In-Reply-To: <20231010000929.450702-3-roman.gushchin@linux.dev> Mime-Version: 1.0 References: <20231010000929.450702-1-roman.gushchin@linux.dev> <20231010000929.450702-3-roman.gushchin@linux.dev> Message-ID: <20231011180101.o2ha6awrupojcu6h@google.com> Subject: Re: [PATCH v2 2/5] mm: kmem: add direct objcg pointer to task_struct From: Shakeel Butt To: Roman Gushchin 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 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 11:01:16 -0700 (PDT) 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 ?? > + } > +}