Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1691650ybm; Tue, 21 May 2019 19:34:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9Hy1fi+L0d4rdJfMuVhjHTKP418QayoCe3Y5nnvfTxHl/f24KGYKl89yMlTseEwaCtry+ X-Received: by 2002:a17:902:5c2:: with SMTP id f60mr40397542plf.104.1558492489424; Tue, 21 May 2019 19:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558492489; cv=none; d=google.com; s=arc-20160816; b=W7HHzqJ7BeZfH4oIsH41T+1tevcA9T90pEKv6Kl9RBZT07ba9DTISuArwZG4XGIMC9 yZsYVLld6oU66/d+2FrGWJ5lIpoPl+WPsQg/6YEBSyrvHRroSw+EGDKMUTZguTj1ciUr H87aaLKGMEaPBUm7CC1BnEHfU2Ouy0xv62KqVCxY6D9zO7UUxzpNqbIzNwfNMe/5VXKI krTnM1UJksCJ3hvUbmaCH2asGaZK1ovF8F/uBVD2386ieTHPmwabDf+4Uw+u5/FEgFU8 fKyr7gN+4UGGSdxmDr2ln46h3hcK59yY4/6MXl/ltOW37zmi/7IjWcxPsKnJqNcGQJNa ZMYg== 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=gaiEBLiVBA4veNMxXZc/wYYVbfd+Fg8AU0FBZI282xU=; b=G325gapzV8X5ozpvg2MWMwPZzIJ5miR85VHuWRUelIiOoPqvAmlo7PaOtyxvASPwR+ AVoLsr92jccviCkiCNHf2N0U87HkWS5qmTNBpCJnKNxjbJ8lOeJ7D66W2yOTQR+hz8AR /VphV9T/gW8vhfdjQRF2jz1MOygTiXix5ykiNrAw0Eih/9Mb0hgXy+/RUMaKrHJtYb1K pxazw8sdEJK4rh6Hhr8cF33yMzGypxoB/x429wUFK4FH0BR60l00Cz3+YTPVe8QScFae iVkkbbozIvXwQkzBE17sb2jSIoJDP6dHAskkDDHqiyEpGH8gXI4Mn3DzU6RN+xiQcIz0 XHAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S9s7o5Fg; 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 h18si23206699plr.16.2019.05.21.19.34.33; Tue, 21 May 2019 19:34:49 -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; dkim=pass header.i=@kernel.org header.s=default header.b=S9s7o5Fg; 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 S1728271AbfEVCdO (ORCPT + 99 others); Tue, 21 May 2019 22:33:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:41738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727208AbfEVCdO (ORCPT ); Tue, 21 May 2019 22:33:14 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) (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 5302B2173C; Wed, 22 May 2019 02:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558492393; bh=stsomyQrXg2oFOXmpSx06uL2yS8uJMmKpQW0CHbxwiU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=S9s7o5FgX4z/u7+WIrJ4i4+Qxe4jXFBy3y5hH0XzwyZgwDhA92N2D+Qji5lMGhvct ALiCiNedjpmNN/4R0cPv4AmY+Vx6Ho0GShjq1voZmi5rbAp8MhNOGAnhK4UEhHH7uC q6RDy4zNqynWhzrlKoTS0fuaO0iCWzj2oi/N6fUU= Date: Tue, 21 May 2019 19:33:12 -0700 From: Andrew Morton To: Roman Penyaev Cc: Arnd Bergmann , Azat Khuzhin , Al Viro , Linus Torvalds , Linux FS-devel Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH v3 13/13] epoll: implement epoll_create2() syscall Message-Id: <20190521193312.42a3fdda1774b1922730e459@linux-foundation.org> In-Reply-To: <41b847c48ccbe0c406bd54c16fbc1bf0@suse.de> References: <20190516085810.31077-1-rpenyaev@suse.de> <20190516085810.31077-14-rpenyaev@suse.de> <41b847c48ccbe0c406bd54c16fbc1bf0@suse.de> X-Mailer: Sylpheed 3.7.0 (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 Thu, 16 May 2019 12:20:50 +0200 Roman Penyaev wrote: > On 2019-05-16 12:03, Arnd Bergmann wrote: > > On Thu, May 16, 2019 at 10:59 AM Roman Penyaev > > wrote: > >> > >> epoll_create2() is needed to accept EPOLL_USERPOLL flags > >> and size, i.e. this patch wires up polling from userspace. > > > > Could you add the system call to all syscall*.tbl files at the same > > time here? > > For all other archs, you mean? Sure. But what is the rule of thumb? > Sometimes people tend to add to the most common x86 and other tables > are left untouched, but then you commit the rest, e.g. > > commit 39036cd2727395c3369b1051005da74059a85317 > Author: Arnd Bergmann > Date: Thu Feb 28 13:59:19 2019 +0100 > > arch: add pidfd and io_uring syscalls everywhere > I thought the preferred approach was to wire up the architectures on which the submitter has tested the syscall, then allow the arch maintainers to enable the syscall independently? And to help them in this, provide a test suite for the new syscall under tools/testing/selftests/. https://github.com/rouming/test-tools/blob/master/userpolled-epoll.c will certainly help but I do think it would be better to move the test into the kernel tree to keep it maintained and so that many people run it in their various setups on an ongoing basis.