Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-10 Thread Christoph Hellwig
On Mon, Jul 09, 2018 at 09:21:53PM +0200, Stephan Müller wrote: > Without such a patch, libkcapi fails to compile as well. See [1]. > > Apart from your suggested patch above, do you have another suggestion how > make > the user space code compile? The only other option would be to move the __ai

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-09 Thread Andrei Vagin
On Sun, Jul 08, 2018 at 10:44:00PM +0200, Christoph Hellwig wrote: > On Wed, Jul 04, 2018 at 04:21:16PM +0200, Adrian Reber wrote: > > In file included from /usr/include/linux/signal.h:5, > > from /usr/include/linux/aio_abi.h:32, > > from include.c:2: > > /usr/incl

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-09 Thread Stephan Müller
Am Sonntag, 8. Juli 2018, 22:44:00 CEST schrieb Christoph Hellwig: Hi Christoph, > > diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h > index 75846164290e..b7705ad66d78 100644 > --- a/include/uapi/linux/aio_abi.h > +++ b/include/uapi/linux/aio_abi.h > @@ -29,7 +29,11 @@ >

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-09 Thread Stephan Müller
Am Sonntag, 8. Juli 2018, 22:44:00 CEST schrieb Christoph Hellwig: Hi Christoph, > > diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h > index 75846164290e..b7705ad66d78 100644 > --- a/include/uapi/linux/aio_abi.h > +++ b/include/uapi/linux/aio_abi.h > @@ -29,7 +29,11 @@ >

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-08 Thread Christoph Hellwig
On Wed, Jul 04, 2018 at 04:21:16PM +0200, Adrian Reber wrote: > In file included from /usr/include/linux/signal.h:5, > from /usr/include/linux/aio_abi.h:32, > from include.c:2: > /usr/include/asm/signal.h:16:23: error: conflicting types for ‘sigset_t’ > typedef un

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-07-04 Thread Adrian Reber
On Wed, May 02, 2018 at 11:14:48PM +0200, Christoph Hellwig wrote: > This is the io_getevents equivalent of ppoll/pselect and allows to > properly mix signals and aio completions (especially with IOCB_CMD_POLL) > and atomically executes the following sequence: > > sigset_t origmask; > >

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-05-18 Thread Christoph Hellwig
On Fri, May 18, 2018 at 09:28:38AM +0100, James Hogan wrote: > Given this: > > On Wed, May 02, 2018 at 11:14:48PM +0200, Christoph Hellwig wrote: > > +struct __aio_sigset { > > + sigset_t __user *sigmask; > > + size_t sigsetsize; > > +}; > > and: > > > +asmlinkage long sys_io_pgetev

Re: [PATCH 7/7] aio: implement io_pgetevents

2018-05-18 Thread James Hogan
Given this: On Wed, May 02, 2018 at 11:14:48PM +0200, Christoph Hellwig wrote: > +struct __aio_sigset { > + sigset_t __user *sigmask; > + size_t sigsetsize; > +}; and: > +asmlinkage long sys_io_pgetevents(aio_context_t ctx_id, > + long min_nr, > +

[PATCH 7/7] aio: implement io_pgetevents

2018-05-02 Thread Christoph Hellwig
This is the io_getevents equivalent of ppoll/pselect and allows to properly mix signals and aio completions (especially with IOCB_CMD_POLL) and atomically executes the following sequence: sigset_t origmask; pthread_sigmask(SIG_SETMASK, &sigmask, &origmask); ret = io_geteve

[PATCH 7/7] aio: implement io_pgetevents

2018-04-15 Thread Christoph Hellwig
This is the io_getevents equivalent of ppoll/pselect and allows to properly mix signals and aio completions (especially with IOCB_CMD_POLL) and atomically executes the following sequence: sigset_t origmask; pthread_sigmask(SIG_SETMASK, &sigmask, &origmask); ret = io_geteve