Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4038089ybd; Tue, 25 Jun 2019 12:55:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmF49Jhc8jyCQGwR/TX02KERgD6FSPUzAy55pwmv0lf2dp9y25Bk5LM7SROKCjSRuIkdoU X-Received: by 2002:a63:2249:: with SMTP id t9mr41105373pgm.149.1561492549704; Tue, 25 Jun 2019 12:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561492549; cv=none; d=google.com; s=arc-20160816; b=u3lMa/3bFwfRc4b9/OS2095dnI2+GLP+SwqrWfFQSuagGqe+esWrm37sqVkOhqPHdX pa2mWnRsYXx0IG5i0bG8E7307QZkJK/MXDTCSHE88tXPkoQzFpZpx3it1Z80kId0tapj HhtpHZbKd4lqFg8J/18aMOck/FEA+QmDyQhQXq321WgqCIGCQjF0xbLG2PH0ZPZzQLeH WP+UqRKV2/AFau1IoYCXphO1/0/N9NtlyhiTn83f8fhjcRLToiaAd216UVdpG+pdGuEP 1frlYte9xEeO3jSkbcmDIucGUcHB1Vuriv9gZC9ObaVMA9t32XDjigEercCGBg27VEwK KL3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gcupLNcQuAcrnrtCN1XKjuCdOPtRDBKha0dkx2OfmJ8=; b=1Dja9cnHJqYT/4SQvLcUr1TDQBfBLPkkpFODCCfsKB8DORQrC8LHM3BXlbAnqOj+jZ iMydezvgGNMLpItVaMDPHjDFLZbXKuXRE0Sm+ovl+dRFgM5vCSNN2TZPCtCyQch+iUpS UCBJcWm2bZ8ixIP5SrNmuFA4B00YQni0GnCzYVd6iNZ9q1mCPYd90Ebsr/bjwWWOnQdf E1Bl7OyE4V0PG3vX01j47E87CW2DYStN52hVoVZ3KT/Ixnvm7GesT1Zsyi3UXsiYMZvh TsBXBE9y0FjHJh22OVMAqK32LK+JD6LUHY8zRRtH78PhEz8qXXo1DwCYdvNFKkv4nab6 fJLw== 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 68si1083074plc.269.2019.06.25.12.55.34; Tue, 25 Jun 2019 12:55: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; 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 S1732989AbfFYS3V (ORCPT + 99 others); Tue, 25 Jun 2019 14:29:21 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:34074 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731765AbfFYS3U (ORCPT ); Tue, 25 Jun 2019 14:29:20 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 773BA1F461; Tue, 25 Jun 2019 18:29:20 +0000 (UTC) Date: Tue, 25 Jun 2019 18:29:20 +0000 From: Eric Wong To: Roman Penyaev Cc: Andrew Morton , Al Viro , Arnd Bergmann , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 13/14] epoll: implement epoll_create2() syscall Message-ID: <20190625182920.abpecnwxdjdg7sjl@dcvr> References: <20190624144151.22688-1-rpenyaev@suse.de> <20190624144151.22688-14-rpenyaev@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190624144151.22688-14-rpenyaev@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Roman Penyaev wrote: > epoll_create2() is needed to accept EPOLL_USERPOLL flags > and size, i.e. this patch wires up polling from userspace. Instead of adding a new syscall, is setting size (and/or even the EPOLL_USEREPOLL flag) something that could be done via ioctl? There's no race like CLOEXEC to worry about and it's not going to be in a hot path where the extra syscall matters. glibc won't need to increase in .so size, either.