Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2806580ybd; Mon, 24 Jun 2019 13:03:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgO50GfWORC0lnGTWn6TKIf6sYOdZ7cUs+4gKJ1bpfuOqiqzvUXg9k4r8uvdTm30IqGNpC X-Received: by 2002:a63:ba08:: with SMTP id k8mr19269583pgf.378.1561406583374; Mon, 24 Jun 2019 13:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561406583; cv=none; d=google.com; s=arc-20160816; b=r6OnVrdI/5NGFdq2fg8G4NUDrthioLqk9Fr94C7opZdsnwsprJavAZ3wOG7Av98PZ7 s4Tq2TEmeVaSZX87Q/87p5mUNBlrd1DjpPX1uN6+SR5ApbEobu56L6CBJUjiOuBaPue2 C52ex6/4uBWp+OzFAYuU5MkbqCBdrLwbB2ev5AFLFHDJF2zTg4OojDyUitmniLjZlC9p DmuIfk67QxhaJWE12pjEnwbPe6TQ6glSYcH1p/9x8UnbLgDmQJd6i3LC1y2cSDj9C0BK AJAKEfJOzc3i22trUHvAzNHB3v1d0eZSXMZCTG2eIFrGCwgvdd8zKKql9m2fQwA2rMke Pf9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=HTF/nS1+qdBT86jDRSsd6Qn5jIsT6F1veuGsXftHOjc=; b=hxFsBKOVcJi87zUPUG4aFfctrpEKzrbVV18bRLcJjIL0NhnsTQz1Fhx17wrfrQTtB5 DTe+6A7C5HoCy/3KRSDaDNUg+cOg7GyjM7pe3vem9QcTbcKWNOiWQIy/YkPVyIAdgxdy 815DuUPQDHQ5DC9D0KynTUA0GOB92tqDI+a9kcmoRqpkk+7ax8UMqttwnZyTC9UNUmEE pfdQFPiTzIBsRuULMok1+XRRKW311ne5n1sRtxLxuD7AARUqdTOrmXnCcjNp5xRXc2fo kTKvTgdlLi9xhhc3cEN2O/6YlvKy7Xk7PVZSC9dg8QjbAETXyqBVneHFL0bxwxq5y2dk zeEw== 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 gn14si8471246plb.395.2019.06.24.13.02.47; Mon, 24 Jun 2019 13:03:03 -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 S1731827AbfFXQOn (ORCPT + 99 others); Mon, 24 Jun 2019 12:14:43 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:46376 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbfFXQOn (ORCPT ); Mon, 24 Jun 2019 12:14:43 -0400 Received: by mail-qk1-f196.google.com with SMTP id x18so10135178qkn.13; Mon, 24 Jun 2019 09:14:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HTF/nS1+qdBT86jDRSsd6Qn5jIsT6F1veuGsXftHOjc=; b=rRlkfi9Bf+ds070dsCIXgWVZaMDuDV2wmQdcfYy7uD13+zOkxauLv0fEC85tUhfe9r RRbF98+lp3sC4rJAhHYHxz8djuyEqIhbIzpTlsBbBbUy1zZCeC847i5o372T9ONj0Bu9 jZS/zk+VdeKk/MgFgXjnGl7M+eLUAZks5I/zjcvHIOExCgCPA6rQXn6nGLwYP3WX0hyF 6xTuCLZ3yleylPF3X7icnnl/PwhQfosotcKUFWLdmFukHkXOoIm9gSJlNB6N7uk7Fix6 AYeX9+m4QYR3n8kh60DRMRc80zks0CIUAZnYLXRDszNM/lkVmWudxLQWQxoSqQtyKxGQ LjKQ== X-Gm-Message-State: APjAAAXJy0KJ2zQ46oLFnVCpPudej7BxYLCiMXiM01kSTa9ASsrx5dnm tkmFkzvUcle6GQWPo1Vd1vJU8XsaJLQ4NG3XrzU= X-Received: by 2002:a37:76c5:: with SMTP id r188mr17681349qkc.394.1561392882315; Mon, 24 Jun 2019 09:14:42 -0700 (PDT) MIME-Version: 1.0 References: <20190624144151.22688-1-rpenyaev@suse.de> <20190624144151.22688-14-rpenyaev@suse.de> In-Reply-To: <20190624144151.22688-14-rpenyaev@suse.de> From: Arnd Bergmann Date: Mon, 24 Jun 2019 18:14:25 +0200 Message-ID: Subject: Re: [PATCH v5 13/14] epoll: implement epoll_create2() syscall To: Roman Penyaev Cc: Andrew Morton , Al Viro , Linus Torvalds , Linux FS-devel Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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. Arnd