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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C0A3C11F66 for ; Wed, 30 Jun 2021 21:45:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A2B046146D for ; Wed, 30 Jun 2021 21:45:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A2B046146D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cmpxchg.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E5E248D01A2; Wed, 30 Jun 2021 17:45:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E0DC96B027D; Wed, 30 Jun 2021 17:45:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CAE198D01A2; Wed, 30 Jun 2021 17:45:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0243.hostedemail.com [216.40.44.243]) by kanga.kvack.org (Postfix) with ESMTP id A82106B027C for ; Wed, 30 Jun 2021 17:45:17 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 53653180ACF6C for ; Wed, 30 Jun 2021 21:45:17 +0000 (UTC) X-FDA: 78311721474.17.3B0EF61 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by imf14.hostedemail.com (Postfix) with ESMTP id CC4CA6001AA9 for ; Wed, 30 Jun 2021 21:45:16 +0000 (UTC) Received: by mail-pl1-f177.google.com with SMTP id m17so2271878plx.7 for ; Wed, 30 Jun 2021 14:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=sL+FFKsX9IdN5XdQVajgEYwrzSq0hT/ELJaZM0Lrtzg=; b=C3soKyBYy0FjT9Fo/LQggyILS9Ty9DsEiwdgYoqhCWcL6wCHAOQXr6ZxRMTyW4ekD5 QJZnVWJKsbZxaZ9HVElMnmcdSJgxEkmwObesE9b7wMYGhq0DaaPeQY3+gwDUjFylKiGu pT313n7riRrBO5Hn/6ySxcYDjdTjqQ/+aPz4krMXjXN0cya00uuemKmmgc93ImWkxNwJ /bSeZDfgoWEVe2lfZ1CA6RDim0Uk++ZJzJ1njtt1GJYvu1uQkdLKTzMt3WmwdAgJ1x6E Q93t4d5gnE87Sc4Ah4haMzFVIadeSwP4FIAyZYSDoeUingmC8ZbbhXO6MvFPEV0xrko1 UywA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sL+FFKsX9IdN5XdQVajgEYwrzSq0hT/ELJaZM0Lrtzg=; b=ZHrLPAHbwSe40djvicFqm2ttkMCg8ri4SFonAn+MrVWAdeGW9cbgubLtuxXG1jPDHo M+Z+We6oCXbsivTz4UGKJQNyVdEtItBIAVgW7SW6bLKdXvpnEUf5DNcYD8Ouf9W6rD9m WTQFjCuXeecQ0Qbqqs8FhqLFJhR6ag68uTQrlN1Djoi7fAIPTLcTzitt9/AR0J1x4LV/ TXEec7sdQr9ZyhKS216LuyluavsjcX+cFmdS/nhoIZGaKyFQHoIqKkON8jUdmdP15MWA c14Dj8J8NrzgTASMbxcG5rMObpVG10Fp1g2axvFwb4y+wSuMRLlCwKnNncv2Qh+euiJa ZEXg== X-Gm-Message-State: AOAM531hlU+TPLEmN/VXpfsZeotyz/VJN3SWGoEefThShr0RCsziojPr +Bh7IgqYHM5AWrm+ccgFZuKFWg== X-Google-Smtp-Source: ABdhPJzjPM+JEpI3NZWKn5a3Rrz/XC40otouJCWOXpFaap6+sK1msyTi34OFYYVjwQrVVpFeWJJX2g== X-Received: by 2002:a17:90a:bb83:: with SMTP id v3mr9301754pjr.102.1625089515569; Wed, 30 Jun 2021 14:45:15 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:14ba]) by smtp.gmail.com with ESMTPSA id ay3sm14271861pjb.38.2021.06.30.14.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 14:45:15 -0700 (PDT) Date: Wed, 30 Jun 2021 17:45:13 -0400 From: Johannes Weiner To: Suren Baghdasaryan Cc: Andy Lutomirski , Andrew Morton , Michal Hocko , Michal Hocko , David Rientjes , Matthew Wilcox , Roman Gushchin , Rik van Riel , Minchan Kim , Christian Brauner , Christoph Hellwig , Oleg Nesterov , David Hildenbrand , Jann Horn , Shakeel Butt , Tim Murray , Linux API , Linux-MM , LKML , Android Kernel Team Subject: Re: [PATCH 1/1] mm: introduce process_reap system call Message-ID: References: <20210623192822.3072029-1-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=C3soKyBY; dmarc=pass (policy=none) header.from=cmpxchg.org; spf=pass (imf14.hostedemail.com: domain of hannes@cmpxchg.org designates 209.85.214.177 as permitted sender) smtp.mailfrom=hannes@cmpxchg.org X-Rspamd-Server: rspam02 X-Stat-Signature: tnochzgs33s1md7tq947n8w5wxxt1i9z X-Rspamd-Queue-Id: CC4CA6001AA9 X-HE-Tag: 1625089516-394200 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Jun 30, 2021 at 11:51:36AM -0700, Suren Baghdasaryan wrote: > On Wed, Jun 30, 2021 at 11:26 AM Andy Lutomirski wrote: > > Also, please consider removing all mention of the word "reap" from the > > user API. For better or for worse, "reap" in UNIX refers to what > > happens when a dead task gets wait()ed. I sincerely wish I could go > > back in time and gently encourage whomever invented that particular > > abomination to change their mind, but my time machine doesn't work. > > I see. Thanks for the note. How about process_mem_release() and > replacing reap with release everywhere? I don't quite understand the objection. This syscall works on tasks that are at the end of their life, right? Isn't something like process_mreap() establishing exactly the mental link we want here? Release is less descriptive for what this thing is to be used for.