Return-Path: Received: from mail-pg1-f193.google.com ([209.85.215.193]:46002 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbeLRN1m (ORCPT ); Tue, 18 Dec 2018 08:27:42 -0500 Received: by mail-pg1-f193.google.com with SMTP id y4so7806686pgc.12 for ; Tue, 18 Dec 2018 05:27:42 -0800 (PST) Subject: Re: [PATCH 14/26] aio: support for IO polling To: Benny Halevy , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org Cc: hch@lst.de, jmoyer@redhat.com, clm@fb.com References: <20181213175645.22181-1-axboe@kernel.dk> <20181213175645.22181-15-axboe@kernel.dk> From: Jens Axboe Message-ID: <7e207359-6ee2-bce2-3c17-be328a965333@kernel.dk> Date: Tue, 18 Dec 2018 06:27:37 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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, except we expect to poll for >> completion of them. The polling happens at io_getevent() time, and >> works just like non-polled IO. >> >> To setup an io_context for polled IO, the application must call >> io_setup2() with IOCTX_FLAG_IOPOLL as one of the flags. It is illegal >> to mix and match polled and non-polled IO on an io_context. >> >> Polled IO doesn't support the user mapped completion ring. Events >> must be reaped through the io_getevents() system call. For non-irq >> driven poll devices, there's no way to support completion reaping >> from userspace by just looking at the ring. The application itself >> is the one that pulls completion entries. >> >> Signed-off-by: Jens Axboe >> > > Looks good to me, thanks. Is that a reviewed-by? -- Jens Axboe