Re: [PATCH 08/36] aio: implement io_pgetevents

2018-03-20 Thread Jeff Moyer
Christoph Hellwig writes: > On Tue, Mar 20, 2018 at 11:30:29AM -0400, Jeff Moyer wrote: >> > In this commit: >> > >> > http://git.infradead.org/users/hch/libaio.git/commitdiff/49f77d595210393ce7b125cb00233cf737402f56 >> >> BTW, the man pages

Re: [PATCH 08/36] aio: implement io_pgetevents

2018-03-20 Thread Jeff Moyer
Christoph Hellwig writes: > On Mon, Mar 19, 2018 at 07:12:41PM -0700, Darrick J. Wong wrote: >> > Note that unlike many other signal related calls we do not pass a sigmask >> > size, as that would get us to 7 arguments, which aren't easily supported >> > by the syscall infrastructure. It seems a

Re: [PATCH 14/36] aio: implement IOCB_CMD_POLL

2018-03-05 Thread Jeff Moyer
of the iocb. > > Unlike poll or epoll without EPOLLONESHOT this interface always works > in one shot mode, that is once the iocb is completed, it will have to be > resubmitted. > > Signed-off-by: Christoph Hellwig Also acked this one in the last posting. Acked-by: J

Re: [PATCH 08/36] aio: implement io_pgetevents

2018-03-05 Thread Jeff Moyer
, which aren't easily supported > by the syscall infrastructure. It seems a lot less painful to just add a > new syscall variant in the unlikely case we're going to increase the > sigset size. > > Signed-off-by: Christoph Hellwig I acked this in the last set, so... Ack

Re: [PATCH 08/36] aio: implement io_pgetevents

2018-01-24 Thread Jeff Moyer
, which aren't easily supported > by the syscall infrastructure. It seems a lot less painful to just add a > new syscall variant in the unlikely case we're going to increase the > sigset size. > > Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer I assume other

Re: [PATCH 14/36] aio: implement IOCB_CMD_POLL

2018-01-24 Thread Jeff Moyer
of the iocb. > > Unlike poll or epoll without EPOLLONESHOT this interface always works > in one shot mode, that is once the iocb is completed, it will have to be > resubmitted. > > Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer

Re: aio poll, io_pgetevents and a new in-kernel poll API V3

2018-01-18 Thread Jeff Moyer
Christoph Hellwig writes: > On Thu, Jan 18, 2018 at 11:44:03AM -0500, Jeff Moyer wrote: >> Jeff Moyer writes: >> >> > FYI, this kernel has issues. It will boot up, but I don't have >> > networking, and even rebooting doesn't succeed. I'm lo

Re: aio poll, io_pgetevents and a new in-kernel poll API V3

2018-01-18 Thread Jeff Moyer
Avi Kivity writes: > On 01/18/2018 05:46 PM, Jeff Moyer wrote: >> FYI, this kernel has issues. It will boot up, but I don't have >> networking, and even rebooting doesn't succeed. I'm looking into it. > > FWIW, I'm running an older version of this pat

Re: aio poll, io_pgetevents and a new in-kernel poll API V3

2018-01-18 Thread Jeff Moyer
Jeff Moyer writes: > FYI, this kernel has issues. It will boot up, but I don't have > networking, and even rebooting doesn't succeed. I'm looking into it. A bisect lands on: eventfd: switch to ->poll_mask. That's not super helpful, though. I did run the ltp even

Re: aio poll, io_pgetevents and a new in-kernel poll API V3

2018-01-18 Thread Jeff Moyer
FYI, this kernel has issues. It will boot up, but I don't have networking, and even rebooting doesn't succeed. I'm looking into it. -Jeff Christoph Hellwig writes: > Hi all, > > this series adds support for the IOCB_CMD_POLL operation to poll for the > readyness of file descriptors using the

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

2018-01-17 Thread Jeff Moyer
Christoph Hellwig writes: > On Tue, Jan 16, 2018 at 07:41:24PM -0500, Jeff Moyer wrote: >> I'd be willing to bet the issue is in your io_syscall6 implementation. >> You pass in arg5 where arg6 should be used. Don't feel bad, it took me >> the better p

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

2018-01-17 Thread Jeff Moyer
Christoph Hellwig writes: > On Wed, Jan 17, 2018 at 04:27:21AM +, Al Viro wrote: >> On Tue, Jan 16, 2018 at 07:41:24PM -0500, Jeff Moyer wrote: >> >if (sigmask) { >> > - if (copy_from_user(&ksigmask, sigmask, sizeof(ksigmask))) >> > +

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

2018-01-16 Thread Jeff Moyer
Hi, Christoph, Christoph Hellwig writes: > On Mon, Jan 15, 2018 at 09:53:10AM +0100, Christoph Hellwig wrote: >> > pselect, as an example, crams the sigmask and size together. Why not >> > just do that? libaio can take care of setting that up. >> >> Yes, I could try that. It's just another d

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

2018-01-12 Thread Jeff Moyer
Christoph Hellwig writes: > 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,

Re: [PATCH 30/32] aio: add delayed cancel support

2018-01-11 Thread Jeff Moyer
Christoph Hellwig writes: > On Wed, Jan 10, 2018 at 06:26:39PM -0500, Jeff Moyer wrote: >> >> The upcoming aio poll support would like to be able to complete the >> >> iocb inline from the cancellation context, but that would cause >> >> a lock order rever

Re: aio poll, io_pgetevents and a new in-kernel poll API V2

2018-01-10 Thread Jeff Moyer
"Michael Kerrisk (man-pages)" writes: Hi, Michael, > Are there some man pages patches already for these changes? https://patchwork.kernel.org/patch/10144129/ Cheers, Jeff

Re: [PATCH 30/32] aio: add delayed cancel support

2018-01-10 Thread Jeff Moyer
Jeff Moyer writes: > Christoph Hellwig writes: > >> The upcoming aio poll support would like to be able to complete the >> iocb inline from the cancellation context, but that would cause >> a lock order reversal. Add support for optionally moving the cancelation >&g

Re: [PATCH 30/32] aio: add delayed cancel support

2018-01-10 Thread Jeff Moyer
his reversal. > > Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer

Re: [PATCH 29/32] aio: delete iocbs from the active_reqs list in kiocb_cancel

2018-01-10 Thread Jeff Moyer
Christoph Hellwig writes: > One we cancel an iocb there is no reason to keep it on the active_reqs > list, given that the list is only used to look for cancelation candidates. > > Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer

Re: [PATCH 28/32] aio: simplify cancellation

2018-01-10 Thread Jeff Moyer
path or the cancellation path delivered the completion event. Now, the completion is always delivered via aio_complete. So yeah, we can get rid of this. Acked-by: Jeff Moyer

Re: [PATCH 27/32] aio: sanitize ki_list handling

2018-01-10 Thread Jeff Moyer
; > > + spin_lock_irqsave(&ctx->ctx_lock, flags); > + list_add_tail(&req->ki_list, &ctx->active_reqs); > req->ki_cancel = cancel; So, this changes behavior from quietly overwriting the prior cancel function to not doing it. I don't think it matters one bit, though. Callers shouldn't do that. Acked-by: Jeff Moyer

Re: [PATCH 26/32] aio: refactor read/write iocb setup

2018-01-10 Thread Jeff Moyer
b->aio_fildes); > + if (unlikely(!req->ki_filp)) > + return -EBADF; > + req->ki_complete = aio_complete_rw; > + req->ki_flags = 0; The above assignment seems superfluous... > + req->ki_pos = iocb->aio_offset; > + req->ki_flags = iocb_flags(req->ki_filp); because of this. Acked-by: Jeff Moyer

Re: [PATCH 24/31] aio: remove an outdated comment in aio_complete

2018-01-09 Thread Jeff Moyer
ld have been part of commit 599bd19bdc4c6 ("fs: don't allow to complete sync iocbs through aio_complete"). Reviewed-by: Jeff Moyer > --- > fs/aio.c | 11 ++- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 03d59

Re: [PATCH 23/31] aio: don't print the page size at boot time

2018-01-09 Thread Jeff Moyer
Christoph Hellwig writes: > The page size is in no way related to the aio code, and printing it in > the (debug) dmesg at every boot serves no purpose. > > Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer

Re: [PATCH 6/6] add test for aio poll and io_pgetevents

2018-01-05 Thread Jeff Moyer
Christoph Hellwig writes: > + p = fork(); > + switch (p) { [snip] > + default: > + close(pipe1[0]); > + close(pipe2[1]); > + > + io_prep_poll(&iocb, pipe2[0], POLLIN); > + > + ret = io_setup(1, &ctx); > + if (ret) { > +

Re: libaio: resurrect aio poll and add io_pgetevents support

2018-01-05 Thread Jeff Moyer
Christoph Hellwig writes: > Hi all, > > this series resurrects IOCB_CMD_POLL support and adds support for the > new io_pgetevents system call, as well as adding a test case. This looks good to me. There may be a couple of changes to the syscall bits, but I can take care of that. I'll review th

Re: [PATCH 2/6] move _body_io_syscall to the generic syscall.h

2018-01-05 Thread Jeff Moyer
Hi, Ben, Thanks for the quick reply. Benjamin LaHaise writes: > On Fri, Jan 05, 2018 at 11:25:17AM -0500, Jeff Moyer wrote: >> Christoph Hellwig writes: >> >> > This way it can be used for the fallback 6-argument version on >> > all architectures. >>

Re: [PATCH 2/6] move _body_io_syscall to the generic syscall.h

2018-01-05 Thread Jeff Moyer
Christoph Hellwig writes: > This way it can be used for the fallback 6-argument version on > all architectures. > > Signed-off-by: Christoph Hellwig This is a strange way to do things. However, I was never really sold on libaio having to implement its own system call wrappers. That decision d

Re: [PATCH 1/2] e1000: fix netpoll with NAPI

2006-06-08 Thread Jeff Moyer
==> Regarding Re: [PATCH 1/2] e1000: fix netpoll with NAPI; Mitch Williams <[EMAIL PROTECTED]> adds: mitch.a.williams> On Wed, 2006-06-07 at 11:44 -0700, Jeff Moyer wrote: >> That patch locks around the tx clean routine. As such, it doesn't >> prevent the problem.

Re: [PATCH 1/2] e1000: fix netpoll with NAPI

2006-06-07 Thread Jeff Moyer
==> Regarding Re: [PATCH 1/2] e1000: fix netpoll with NAPI; Auke Kok <[EMAIL PROTECTED]> adds: auke-jan.h.kok> Hi, auke-jan.h.kok> we're not too happy with this as it puts a branch right in auke-jan.h.kok> the regular receive path. We haven't ran the numbers on it auke-jan.h.kok> yet but it is l

Re: [PATCH 1/2] e1000: fix netpoll with NAPI

2006-06-06 Thread Jeff Moyer
==> Regarding Re: [PATCH 1/2] e1000: fix netpoll with NAPI; Auke Kok <[EMAIL PROTECTED]> adds: auke-jan.h.kok> Jeff Moyer wrote: >> ==> Regarding Re: [PATCH 1/2] e1000: fix netpoll with NAPI; Auke Kok <[EMAIL >> PROTECTED]> adds: auke-jan.h.kok> Neil Horman

Re: [PATCH 1/2] e1000: fix netpoll with NAPI

2006-06-06 Thread Jeff Moyer
==> Regarding Re: [PATCH 1/2] e1000: fix netpoll with NAPI; Mitch Williams <[EMAIL PROTECTED]> adds: mitch> On Tue, 2006-06-06 at 09:52 -0400, Neil Horman wrote: >> I've been speaking about this fix with a Jeff Moyer, and we've come up with >> some >&g

Re: [PATCH 1/2] e1000: fix netpoll with NAPI

2006-06-06 Thread Jeff Moyer
==> Regarding Re: [PATCH 1/2] e1000: fix netpoll with NAPI; Auke Kok <[EMAIL PROTECTED]> adds: auke-jan.h.kok> Neil Horman wrote: >> On Tue, Jun 06, 2006 at 09:39:25AM -0700, Mitch Williams wrote: >>> On Tue, 2006-06-06 at 09:52 -0400, Neil Horman wrote: auke-jan.h.kok> [snip] >>> However, ju