Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp45rdh; Wed, 22 Nov 2023 15:57:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7aIpridDPBvKR/u3QbRMZCwMFyoGZh9YBv1PD5akoIHGi9oV+scYugMh4jlKe5xRB9x/w X-Received: by 2002:a17:902:ec83:b0:1cf:6453:b27a with SMTP id x3-20020a170902ec8300b001cf6453b27amr4619589plg.12.1700697475902; Wed, 22 Nov 2023 15:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700697475; cv=none; d=google.com; s=arc-20160816; b=PSw2CduR2AyvpjoKG6IVcJrL47nXywuM1ndbvn2WUASCwSXP3gvDJK9iEzifMdvUpM C4PrOXNNwLBNPVwMI3KVS304LYcO0WI36qRBNrnrh6koWqPeorjKQcj7jcsIZMCGKY+t 1Bp4/REP25Oh0pycGu4pXebfq1EaEvv7QLHn1+VRVoymuJznoinVrQTgA82xW+v9ULR8 rBqjoZkOQRl6q9WvkY4A4XWpuD8cx/XBYPAEgyymk1ibhxJui3TgAwvNSfWrikXO0Ed6 JEFDnySqe2VR0NH+sgxip9G/16cdHIf8UON6WBdrOUU1FcfcALytySTe3cPlN17E1V7n 8z6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=x+jlG3ds7B/4ooT5+OaZJfN0QhswGFhGAyZ2Rsu9K2s=; fh=gGx0KWmbg1ewuuupid89BERowf995suKzxDl2sNRSEw=; b=EuHQCNwWHVMMg1/7R3rpu50vTXGAdyqw5sILaBuSnttdJwdjDG0ZjcQB0E7o78u42u 7s72vFSXHHDamg/Ek7hDveU6rqHUzOBJICOVf5l0goPJapfIz19Ee8fhNofu/oTPsPRg hu8BXEFG+M8ma56Ex/WJ3KSRghuRFxtGOtNHuvCJQXySLY6fhsil/6S0zS1Jinn6Sw6H F1L0qx29OFPxm7ekKiCdy93zhJ1ILutOYMXA+OgSypwPa2zPDOec6/0DRR8SCj7On7WF AvNBpdQe/oOLP6ZN3Snquvt08mZ5uwkt5p8OfqLG2ItmLLpqOqUY6nGdEJ+UEX+1nj6G fJZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YQVY5WeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 4-20020a170902c14400b001cf7d7b941esi437735plj.300.2023.11.22.15.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:57:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YQVY5WeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 76DD58253FDE; Wed, 22 Nov 2023 15:57:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344402AbjKVX5m (ORCPT + 99 others); Wed, 22 Nov 2023 18:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344489AbjKVX5l (ORCPT ); Wed, 22 Nov 2023 18:57:41 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 097CBD40; Wed, 22 Nov 2023 15:57:37 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6be1bc5aa1cso363064b3a.3; Wed, 22 Nov 2023 15:57:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700697456; x=1701302256; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=x+jlG3ds7B/4ooT5+OaZJfN0QhswGFhGAyZ2Rsu9K2s=; b=YQVY5WeW3H/IfC1vurc4tnaS41vh3bnMMb51mwHb8+xcM5aWYXLnxnu3d7GW7WmEt2 LBnRQ5x9w4woA71+gajj28RsofI4xfhhMS3dmXxwWAJbZo+2c2m+UjIUzNiJ5lefwebB KfwbbCzur//k2GG7jaZySMIwTfwTc2VdJFr/dGAPjcd7tmCpFfI3QG5Txno8664JM2UL C7dywLhkRFJbTamrhqvp/d6OhqvAT8KGdFcQJ0+Mpr13CXzedIT7ZEroEACarFGxLzKB w/lINhZGMnrX+Rv1KlKhuAyfSCg9nxGWhg7FPIBuZZnWA2YjJUzhQGTUmFJHNuNibil9 EMaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700697456; x=1701302256; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x+jlG3ds7B/4ooT5+OaZJfN0QhswGFhGAyZ2Rsu9K2s=; b=R0T7Hg7mWFoKwgNQa9VA/vgXpL14YZLPG70kPyh0T/30w+DGLyYiZq34bZD0+379D0 RA2D237yEzpbyjp4k+w+AvAaGjq9HB829QXsI2nnUj0EB9kwmoBoe3VGr6jIEdCrtEr4 8uXlM/p0+7L5Yqy1ONps062jOqTetE8Wdx3ODe8h++wfWLkHI4TcnPoJ1jaPT6cn770X uJOr4ELAbo17nedQ142ZsfqjDp5Q7lVOTO0PSfU1z/Jjz1WnBAS/oVdOEUJGlZXL71pG MJqVEydEkjMLGLyj38LENDMh4Ps/EmVGWkRhv6+7jYtyIVOsG04v4PR/Vwo0A6/ANNkY NAOg== X-Gm-Message-State: AOJu0Yy+1K4FT+MVJBtyAnPxYotSk+lGOkg5vg1s2j7FVRQJhfJDOFDB FzoOV8N8h0irmnGQOW9JXv/8Zokzgw4pdY5W7qU= X-Received: by 2002:a05:6a00:1302:b0:6c2:cb4a:73c3 with SMTP id j2-20020a056a00130200b006c2cb4a73c3mr4379466pfu.11.1700697456419; Wed, 22 Nov 2023 15:57:36 -0800 (PST) MIME-Version: 1.0 References: <20231122133944.297ce0001fb51214096dfb6c@linux-foundation.org> In-Reply-To: <20231122133944.297ce0001fb51214096dfb6c@linux-foundation.org> From: Vinicius Petrucci Date: Wed, 22 Nov 2023 17:57:00 -0600 Message-ID: Subject: Re: [RFC PATCH] mm/mbind: Introduce process_mbind() syscall for external memory binding To: Andrew Morton Cc: linux-mm@vger.kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, minchan@kernel.org, dave.hansen@linux.intel.com, x86@kernel.org, Jonathan.Cameron@huawei.com, aneesh.kumar@linux.ibm.com, ying.huang@intel.com, dan.j.williams@intel.com, hezhongkun.hzk@bytedance.com, fvdl@google.com, surenb@google.com, rientjes@google.com, hannes@cmpxchg.org, mhocko@suse.com, Hasan.Maruf@amd.com, jgroves@micron.com, ravis.opensrc@micron.com, sthanneeru@micron.com, emirakhur@micron.com, vtavarespetr@micron.com, Gregory Price Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:57:53 -0800 (PST) On Wed, Nov 22, 2023 at 3:39=E2=80=AFPM Andrew Morton wrote: > I'm having deja vu. Not 10 minutes ago, Gregory sent out a patchset > which does the same thing. > > https://lkml.kernel.org/r/20231122211200.31620-1-gregory.price@memverge.c= om > Certainly, it appears that we were addressing the same matter but approaching it from different perspectives or discussions. And we hastened to submit our RFCs before the Thanksgiving break. :-) The patch I sent originated from the thread, and the subsequent discussion commenced with the 'pidfd_set_mempolicy' RFC, possibly influenced by the 'process_madvise.' Specifically, the concept of a 'process_mbind()' syscall was suggested by Frank van der Linden (Google): https://lkml.kernel.org/linux-mm/Y0WEbCqJHjnqsg8n@dhcp22.suse.cz/T/#m950f26= bdd6ce494b20ba170cc1f6db85e1924e8e I would appreciate it if others could kindly evaluate what appears to be the suitable course of action moving forward. Thank you!