Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp133885ybk; Fri, 8 May 2020 16:08:38 -0700 (PDT) X-Google-Smtp-Source: APiQypLSzYBVjX8cOolyHkV+vWFQFYMOmwriTG+d4I1Tqxtu7q9I2GGmXFQEedR4nWe0q+EsQdYp X-Received: by 2002:aa7:c3c2:: with SMTP id l2mr4251054edr.362.1588979318692; Fri, 08 May 2020 16:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588979318; cv=none; d=google.com; s=arc-20160816; b=cVCun7XNoCjSc9WMMf5CCIZa9J+BBCoEnlfH0cGmaxn+/uKGuckgRLUAkHLmOm+kHT V/FN+dEuvhybDHrmudHr7g8Ln99vEMI/KzvHL9EeaSDmWg+lpOjr8JyvfvcGVGGMRoVj csH9Lg3LN8XOtergiqrJpMpWvUufqQhsP2FoJc3L0N2AKnzoazEvHxUIAKCvhqBzjc3P 7TWKnj0AJ2Z87k9ED0IjnC2Hm6sWTEqZMow/N5RKsyafq+ri/Ga6n/Jtu9+ZP/rw9yJ/ xcikoHc0vS/8B+8080XExoMUfRcceUhpJV3k3IX9gtrH6B1TRNdovN0s1FHJDhlJ7a1E ey/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=K82RArPgKbs+MVLNi3XuK56swCepFGzP4RpUZxqmyxM=; b=YtToDdpGGrhi9dFYwYMuKxn1Rv9xUsjECIwanxNJEjhYfI08VAHBpmotlQQ8YF6S+4 MK/P2FMm/o7rPDKIGcO3cMnVFhn9qzsmMcFGYCeS0hSvOuvHDzU8agjOUYILB9ygigEH QfJLlguCqxpNhYxxoHZ/qlyUnBkhaLZdJh6+KvhQYE5LMqyJE8r7aFhYMwRe9DtD0pzk wpysWN9BcIlkFjLeWH0G54x6I7mUY9mPInRN+h45YjuihRRYrYDQOuJgXliroWy4KfUF Dow9wc22jssGLx7zwZXIx+Xel8sn0yKd++MXTLO2W0Q+HOEJqnrmMXUSvaiJZO0qwArg p38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iuutN3iv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si1792912edw.150.2020.05.08.16.08.15; Fri, 08 May 2020 16:08:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iuutN3iv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727890AbgEHXER (ORCPT + 99 others); Fri, 8 May 2020 19:04:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:47376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbgEHXER (ORCPT ); Fri, 8 May 2020 19:04:17 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C190208DB; Fri, 8 May 2020 23:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588979056; bh=AqLynUwQ51zN07t3YqDgkNGcT5K3FLB+CukBeZhLq98=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iuutN3iviKQPxE9c89Nx6lLRcAGHl5P6ObTVn+J4JMJKLVBT+frvae/ZauOSfLDe4 Xh5umy4EUykz8LoU4D/7eRyPZgBcLFVERkU/Lo/IzzDsuzMwAm/NKpFgJjwE33S18V eROfy6Ro5YQbqyaL9xkp8q+yyf+qIqyEvnn6MC2o= Date: Fri, 8 May 2020 16:04:15 -0700 From: Andrew Morton To: Minchan Kim Cc: Vlastimil Babka , LKML , linux-mm , linux-api@vger.kernel.org, oleksandr@redhat.com, Suren Baghdasaryan , Tim Murray , Daniel Colascione , Sandeep Patil , Sonny Rao , Brian Geffon , Michal Hocko , Johannes Weiner , Shakeel Butt , John Dias , Joel Fernandes , Jann Horn , alexander.h.duyck@linux.intel.com, sj38.park@gmail.com, Christian Brauner , Kirill Tkhai Subject: Re: [PATCH v7 5/7] mm: support both pid and pidfd for process_madvise Message-Id: <20200508160415.65ff359a9e312c613336587b@linux-foundation.org> In-Reply-To: <20200508183653.GB125527@google.com> References: <20200302193630.68771-1-minchan@kernel.org> <20200302193630.68771-6-minchan@kernel.org> <14089609-5fb1-b082-716f-c2e129d27c48@suse.cz> <20200311004251.GB87930@google.com> <20200508183653.GB125527@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 May 2020 11:36:53 -0700 Minchan Kim wrote: > > ... > > Per Vlastimil's request, I changed "which and advise" with "idtype and > advice" in function prototype of description. > Could you replace the part in the description? Code is never changed. > Done, but... > > ... > > There is a demand[1] to support pid as well pidfd for process_madvise to > reduce unnecessary syscall to get pidfd if the user has control of the > target process(ie, they could guarantee the process is not gone or pid is > not reused). > > This patch aims for supporting both options like waitid(2). So, the > syscall is currently, > > int process_madvise(idtype_t idtype, id_t id, void *addr, > size_t length, int advice, unsigned long flags); > > @which is actually idtype_t for userspace libray and currently, it > supports P_PID and P_PIDFD. What does "@which is actually idtype_t for userspace libray" mean? Can you clarify and expand? Also, does this userspace library exist? If so, where is it? > > ... >