Re: [PATCH v5 13/14] epoll: implement epoll_create2() syscall

2019-06-25 Thread Eric Wong
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 CLOEXE

Re: [PATCH v5 13/14] epoll: implement epoll_create2() syscall

2019-06-24 Thread Roman Penyaev
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

Re: [PATCH v5 13/14] epoll: implement epoll_create2() syscall

2019-06-24 Thread Arnd Bergmann
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

[PATCH v5 13/14] epoll: implement epoll_create2() syscall

2019-06-24 Thread Roman Penyaev
epoll_create2() is needed to accept EPOLL_USERPOLL flags and size, i.e. this patch wires up polling from userspace. Signed-off-by: Roman Penyaev Cc: Andrew Morton Cc: Al Viro Cc: Arnd Bergmann Cc: Linus Torvalds Cc: linux-fsde...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/alph