Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2818271ybd; Mon, 24 Jun 2019 13:16:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyt+VVnczcPfmZjIeeG4OA2P8qJKKaACYgw3xv6U7BwHZ/qJ/to0JTMw+eOOTmRSsHu0C0h X-Received: by 2002:a17:90a:1ac5:: with SMTP id p63mr26392078pjp.25.1561407378729; Mon, 24 Jun 2019 13:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561407378; cv=none; d=google.com; s=arc-20160816; b=qgUNqivNTToRnwJdmeLIWOqsqTM5IfJ90ZWFTZeC+pIoPTRuAichsm6SXJYiNQTT/j NzDR39n2zmUTk0XOeqleadTpznv8fxxv8vmM5eiuKkKcxNUEglQPeUlCS26q/ZpZquQE DoTfzjK+GHCQfn7WUUsL4u83K+97/yEzM6gHlCSi1oMla+FDzPQyqXrRpzXRbMuVwWyz cjhoEiNO9jKvAzMVH31Hg8HubrHxuC07IfYk8fgi6wcODqEk9xRdgDfCNxCnwKfxToF9 SBkM3sGZkcQEzZzxIOY6ow8vN/KE/5vRm1ldY5gD+DUVMJRyShDr06lfzLTTkQwrdIc7 r8sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=UJoUoJm7pt8uIixg1GF0/slrGc9ooDb2BNxd1A3xFYw=; b=pvFfTPrrgZtx9CsQjFUBQJ2N/xCIFQ+s44+WoUZDjg+WoYcz4URYi2ad8OXalfrTqo GRzMvheKs88gK+PqQs/Tn5zeKYfqMwvjB63XXepm1aXFHs7TvLgUTHu74kdhAqgqeneq IL+ERbYb85kukACZJWw2a9Lk++p04liiSi+qTNH3FF1AcxYCtodcfXrEGBMDkIfw8JvD buhrbrN9c6Ri3fPJqopmhHSWwfpvp09TrRzf2ryyGWBSmowF8D85hDknC0yBWg9hdmmC Rghxk4+hhUURp/VoLWf9DE/csNYKWC0mDDY/H5JGWv3ixKKqxEHAmqjuRbjld3Ol+HgE 1fKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si11540480pff.185.2019.06.24.13.16.02; Mon, 24 Jun 2019 13:16:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730319AbfFXQZy (ORCPT + 99 others); Mon, 24 Jun 2019 12:25:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:53858 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726393AbfFXQZy (ORCPT ); Mon, 24 Jun 2019 12:25:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0AF07ADDA; Mon, 24 Jun 2019 16:25:53 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 24 Jun 2019 18:25:52 +0200 From: Roman Penyaev To: Arnd Bergmann Cc: Andrew Morton , Al Viro , Linus Torvalds , Linux FS-devel Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH v5 13/14] epoll: implement epoll_create2() syscall In-Reply-To: References: <20190624144151.22688-1-rpenyaev@suse.de> <20190624144151.22688-14-rpenyaev@suse.de> Message-ID: X-Sender: rpenyaev@suse.de User-Agent: Roundcube Webmail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-06-24 18:14, Arnd Bergmann wrote: > On Mon, Jun 24, 2019 at 4:42 PM Roman Penyaev wrote: >> >> epoll_create2() is needed to accept EPOLL_USERPOLL flags >> and size, i.e. this patch wires up polling from userspace. > > Can you explain in the patch description more what it's needed for? Sure. Will update on next iteration. > > The man page only states that "Since Linux 2.6.8, the size argument > is ignored", so your description above does not explain why you need > to add the size argument back. > >> diff --git a/arch/alpha/kernel/syscalls/syscall.tbl >> b/arch/alpha/kernel/syscalls/syscall.tbl >> index 1db9bbcfb84e..a1d7b695063d 100644 >> --- a/arch/alpha/kernel/syscalls/syscall.tbl >> +++ b/arch/alpha/kernel/syscalls/syscall.tbl >> @@ -474,3 +474,5 @@ >> 542 common fsmount sys_fsmount >> 543 common fspick sys_fspick >> 544 common pidfd_open sys_pidfd_open >> +# 546 common clone3 sys_clone3 >> +547 common epoll_create2 sys_epoll_create2 >> diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl >> index ff45d8807cb8..1497f3c87d54 100644 >> --- a/arch/arm/tools/syscall.tbl >> +++ b/arch/arm/tools/syscall.tbl >> @@ -449,3 +449,4 @@ >> 433 common fspick sys_fspick >> 434 common pidfd_open sys_pidfd_open >> 436 common clone3 sys_clone3 >> +437 common epoll_create2 sys_epoll_create2 > > The table changes all look correct and complete, provided we > don't get another patch picking the same number. Good. I had doubts, because on some archs there is a gap, (sys_clone3 was missing). So I left a placeholder, so can be uncommented when sys_clone3 is implemented. -- Roman