From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: [PATCH 6/6] add test for aio poll and io_pgetevents Date: Fri, 05 Jan 2018 17:55:58 -0500 Message-ID: References: <20180104080325.14716-1-hch@lst.de> <20180104080325.14716-7-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain Cc: linux-aio@kvack.org, Avi Kivity , linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Christoph Hellwig Return-path: In-Reply-To: <20180104080325.14716-7-hch@lst.de> (Christoph Hellwig's message of "Thu, 4 Jan 2018 09:03:25 +0100") Sender: owner-linux-aio@kvack.org List-Id: netdev.vger.kernel.org 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) { > + 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 -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to majordomo@kvack.org. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: aart@kvack.org