mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Moyer <jmoyer@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-aio@kvack.org, Avi Kivity <avi@scylladb.com>,
	linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 6/6] add test for aio poll and io_pgetevents
Date: Fri, 05 Jan 2018 17:55:58 -0500	[thread overview]
Message-ID: <x49efn3dif5.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20180104080325.14716-7-hch@lst.de> (Christoph Hellwig's message of "Thu, 4 Jan 2018 09:03:25 +0100")

Christoph Hellwig <hch@lst.de> 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) {
> +			printf("child: io_setup failed\n");

parent

> +			return 1;
> +		}
> +
> +		ret = io_submit(ctx, 1, iocbs);
> +		if (ret != 1) {
> +			printf("child: io_submit failed\n");

parent

Other than that, looks ok to me.  Thanks for writing a test!
I can fix this up, no need to repost.

-Jeff

  parent reply	other threads:[~2018-01-05 22:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-04  8:03 libaio: resurrect aio poll and add io_pgetevents support Christoph Hellwig
2018-01-04  8:03 ` [PATCH 1/6] resurrect aio poll support Christoph Hellwig
2018-01-04  8:03 ` [PATCH 2/6] move _body_io_syscall to the generic syscall.h Christoph Hellwig
2018-01-05 16:25   ` Jeff Moyer
2018-01-05 16:40     ` Benjamin LaHaise
2018-01-05 22:49       ` Jeff Moyer
2018-01-04  8:03 ` [PATCH 3/6] provide a generic io_syscall6 Christoph Hellwig
2018-01-04  8:03 ` [PATCH 4/6] move the aio_ring defintion and empty check into a header Christoph Hellwig
2018-01-04  8:03 ` [PATCH 5/6] add support for io_pgetevents Christoph Hellwig
2018-01-04  8:03 ` [PATCH 6/6] add test for aio poll and io_pgetevents Christoph Hellwig
2018-01-04 10:24   ` Philippe Ombredanne
2018-01-04 10:29     ` Christoph Hellwig
2018-01-05 22:55   ` Jeff Moyer [this message]
2018-01-05 22:57 ` libaio: resurrect aio poll and add io_pgetevents support Jeff Moyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x49efn3dif5.fsf@segfault.boston.devel.redhat.com \
    --to=jmoyer@redhat.com \
    --cc=avi@scylladb.com \
    --cc=hch@lst.de \
    --cc=linux-aio@kvack.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome