Re: [PATCH 14/26] aio: support for IO polling

2018-12-18 Thread Benny Halevy
On Tue, 2018-12-18 at 06:27 -0700, Jens Axboe wrote: > On 12/18/18 3:32 AM, Benny Halevy wrote: > > On Thu, 2018-12-13 at 10:56 -0700, Jens Axboe wrote: > > > Add polled variants of PREAD/PREADV and PWRITE/PWRITEV. These act > > > like their non-polled counterparts, e

Re: [PATCH 14/26] aio: support for IO polling

2018-12-18 Thread Benny Halevy
On Thu, 2018-12-13 at 10:56 -0700, Jens Axboe wrote: > Add polled variants of PREAD/PREADV and PWRITE/PWRITEV. These act > like their non-polled counterparts, except we expect to poll for > completion of them. The polling happens at io_getevent() time, and > works just like non-polled IO. > > To s

Re: [PATCH 15/26] aio: support for IO polling

2018-12-10 Thread Benny Halevy
On Sun, 2018-12-09 at 07:36 -0700, Jens Axboe wrote: > On 12/9/18 3:02 AM, Benny Halevy wrote: > > > +static int __aio_iopoll_check(struct kioctx *ctx, struct io_event __user > > > *event, > > > + unsigned int *nr_events, long min_nr, long ma

Re: [PATCH 13/26] aio: add io_setup2() system call

2018-12-09 Thread Benny Halevy
On Fri, 2018-12-07 at 15:20 -0700, Jens Axboe wrote: > This is just like io_setup(), except add a flags argument to let the > caller control/define some of the io_context behavior. > > Outside of the flags, we add an iocb array and two user pointers for > future use. > > Signed-off-by: Jens Axboe

Re: [PATCH 15/26] aio: support for IO polling

2018-12-09 Thread Benny Halevy
On Fri, 2018-12-07 at 15:20 -0700, Jens Axboe wrote: > Add polled variants of PREAD/PREADV and PWRITE/PWRITEV. These act > like their non-polled counterparts, except we expect to poll for > completion of them. The polling happens at io_getevent() time, and > works just like non-polled IO. > > To s

Re: [PATCH 15/26] aio: support for IO polling

2018-12-06 Thread Benny Halevy
On Wed, 2018-12-05 at 06:10 -0700, Jens Axboe wrote: > On 12/5/18 2:56 AM, Benny Halevy wrote: > > > +static int aio_iopoll_getevents(struct kioctx *ctx, > > > + struct io_event __user *event, > > > + unsigned int

Re: [PATCH 15/26] aio: support for IO polling

2018-12-05 Thread Benny Halevy
On Tue, 2018-12-04 at 16:37 -0700, Jens Axboe wrote: > Add polled variants of PREAD/PREADV and PWRITE/PWRITEV. These act > like their non-polled counterparts, except we expect to poll for > completion of them. The polling happens at io_getevent() time, and > works just like non-polled IO. > > To s

Re: [PATCH 17/20] aio: support for IO polling

2018-11-29 Thread Benny Halevy
On Wed, 2018-11-28 at 11:50 -0700, Jens Axboe wrote: > On 11/28/18 2:33 AM, Benny Halevy wrote: > > > I don't see how we can get there with it being larger than already, > > > that would be a big bug if we fill more events than userspace asked > > > for. > &

Re: [PATCH 17/20] aio: support for IO polling

2018-11-28 Thread Benny Halevy
On Tue, 2018-11-27 at 08:24 -0700, Jens Axboe wrote: > On 11/27/18 2:53 AM, Benny Halevy wrote: > > > @@ -818,11 +853,15 @@ static int kill_ioctx(struct mm_struct *mm, struct > > > kioctx *ctx, > > > { > > > struct kioctx_table *table; > >

Re: [PATCH 17/20] aio: support for IO polling

2018-11-27 Thread Benny Halevy
On Mon, 2018-11-26 at 09:45 -0700, Jens Axboe wrote: > Add polled variants of PREAD/PREADV and PWRITE/PWRITEV. These act > like their non-polled counterparts, except we expect to poll for > completion of them. The polling happens at io_getevent() time, and > works just like non-polled IO. > > To s

Re: [PATCH 8/8] aio: support for IO polling

2018-11-21 Thread Benny Halevy
On Wed, 2018-11-21 at 06:26 -0700, Jens Axboe wrote: > On 11/21/18 4:12 AM, Benny Halevy wrote: > > > +#define AIO_POLL_STACK 8 > > > + > > > +/* > > > + * Process completed iocb iopoll entries, copying the result to > > > userspace. > > &

Re: [PATCH 8/8] aio: support for IO polling

2018-11-21 Thread Benny Halevy
On Tue, 2018-11-20 at 10:19 -0700, Jens Axboe wrote: > Add polled variants of PREAD/PREADV and PWRITE/PWRITEV. These act > like their non-polled counterparts, except we expect to poll for > completion of them. The polling happens at io_getevent() time, and > works just like non-polled IO. > > To s

Re: [PATCH 3/8] iomap/xfs: wire up file_operations ->iopoll()

2018-11-21 Thread Benny Halevy
On Tue, 2018-11-20 at 10:19 -0700, Jens Axboe wrote: > Add an iomap implementation of fops->iopoll() and wire it up for > XFS. > > Signed-off-by: Jens Axboe > --- > fs/iomap.c| 50 +-- > fs/xfs/xfs_file.c | 1 + > include/linux/iomap.h |