Received: by 10.223.176.46 with SMTP id f43csp1148107wra; Wed, 24 Jan 2018 11:25:08 -0800 (PST) X-Google-Smtp-Source: AH8x224NHIINu5JSo28MBFF7KRAhPzrgIWhSrXy7Xsl1Aota22N8oO5GEvNjJNuMOD36kvZm+Mle X-Received: by 10.98.11.218 with SMTP id 87mr13473468pfl.99.1516821908347; Wed, 24 Jan 2018 11:25:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516821908; cv=none; d=google.com; s=arc-20160816; b=B6kYHofbun5ay+BkkK+OHt5fElpAcABs6o0/KPj+uBPg/6BxnMRKc57hEIY5pC/Hit 2ZLelfY3qK+RA/Rt74jQixixFCYlTds38ikz8voStmz3u03Y7D+NSTl3ODNXhibJz+Dc th4CNWnFYof2xtk5ptEGe9OSWTV+FaTUUwlTI7JF7Tct/EwclXADcvoQp337pYI5Ks/g MY+m21GXz7GqBx5p844yaC5w+y8yly/LLUVBcHlyE7n0ccMjHwHXXZnU996ju0JFmm+m m7lHCy9+AzGddx5mi2yuPOudJ6zsdEvdVl1NdlDZ3SiWWE97GOCtAvMrZYTh9Q3NVzdj um1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=khi/H6DseKs1dIncmui8hI6zlnNz1N82H4UHq9PBTLU=; b=0OwO4VUdjDv1DyR63A46RnWLan14IY16W0gg8yK5G15dz6arNnfjyMdPqY3en64qhj qmLYF0m7XWw+T0KbRr1ihmAxg+1u8uYjv6NolxC6izzY9v1AZDFIZLFnGfuHbUCOqJlt mDBrv1nYrmQNDdjRvQ8wrieBTGQmVOHhdCd7eOKIKxmWeFFThvQ4yfUY+TwVdkywbNVS EVaAuD6bCf5Q+pPK8WV2kOAbhm+BidDcRQQsfDJtLQ9ZuGac/6WPoRTCTYC/tGqDY/PH t5Hh7kKPcxNa30TtvJC5b2Ar0r+V6lOG8Ayc35SWvKdzL+PZa3t6um6uccolikb40zpF lkvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11-v6si613959plm.734.2018.01.24.11.24.54; Wed, 24 Jan 2018 11:25:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752670AbeAXTYS (ORCPT + 99 others); Wed, 24 Jan 2018 14:24:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38774 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752622AbeAXTYP (ORCPT ); Wed, 24 Jan 2018 14:24:15 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C763A66854; Wed, 24 Jan 2018 19:24:15 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C3C4162674; Wed, 24 Jan 2018 19:24:14 +0000 (UTC) From: Jeff Moyer To: Christoph Hellwig Cc: viro@zeniv.linux.org.uk, Avi Kivity , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/36] aio: implement IOCB_CMD_POLL References: <20180122201243.31610-1-hch@lst.de> <20180122201243.31610-15-hch@lst.de> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Wed, 24 Jan 2018 14:24:13 -0500 In-Reply-To: <20180122201243.31610-15-hch@lst.de> (Christoph Hellwig's message of "Mon, 22 Jan 2018 21:12:21 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 24 Jan 2018 19:24:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig writes: > Simple one-shot poll through the io_submit() interface. To poll for > a file descriptor the application should submit an iocb of type > IOCB_CMD_POLL. It will poll the fd for the events specified in the > the first 32 bits of the aio_buf field 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