Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265027AbTFRAMU (ORCPT ); Tue, 17 Jun 2003 20:12:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265028AbTFRAMT (ORCPT ); Tue, 17 Jun 2003 20:12:19 -0400 Received: from r2d2.aoltw.net ([64.236.137.26]:54480 "EHLO netscape.com") by vger.kernel.org with ESMTP id S265027AbTFRALm (ORCPT ); Tue, 17 Jun 2003 20:11:42 -0400 Message-ID: <3EEFB165.5070208@netscape.com> Date: Tue, 17 Jun 2003 17:25:09 -0700 From: jgmyers@netscape.com (John Myers) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Becker CC: Linux Kernel Mailing List , "linux-aio@kvack.org" Subject: Re: [PATCH 2.5.71-mm1] aio process hang on EINVAL References: <1055810609.1250.1466.camel@dell_ss5.pdx.osdl.net> <3EEE6FD9.2050908@netscape.com> <20030617085408.A1934@in.ibm.com> <1055884008.1250.1479.camel@dell_ss5.pdx.osdl.net> <3EEFAC58.905@netscape.com> <20030618001534.GJ7895@parcelfarce.linux.theplanet.co.uk> In-Reply-To: <20030618001534.GJ7895@parcelfarce.linux.theplanet.co.uk> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms060601090503000803010906" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6849 Lines: 114 This is a cryptographically signed message in MIME format. --------------ms060601090503000803010906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Joel Becker wrote: >POSIX 1003.1 says this about aio_read() and aio_write(): > If an error condition is encountered during queuing, the function > call shall return without having initiated or queued the request. > >If you intend to ever allow a POSIX wrapper to these interfaces (I have >one, for instance), you need to return EINVAL, EBADF, and the like from >io_submit(). > No, you just declare that those errors happend "after queuing." >A user has to handle EAGAIN, so io_submit() cannot return void, and you >already have error handling logic here. > > EAGAIN error handling does not require contextual information about the operation being queued. Error handling logic that knows about the context of the operation queued already has to exist in the io_getevents() processing. --------------ms060601090503000803010906 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIL0zCC A9YwggM/oAMCAQICBAIAAeYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCVVMxGDAWBgNV BAoTD0dURSBDb3Jwb3JhdGlvbjEcMBoGA1UEAxMTR1RFIEN5YmVyVHJ1c3QgUm9vdDAeFw0w MTA2MDExMjQ3MDBaFw0wNDA2MDEyMzU5MDBaMIGTMQswCQYDVQQGEwJVUzELMAkGA1UECBMC Q0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxGzAZBgNVBAoTEkFtZXJpY2EgT25saW5lIElu YzEZMBcGA1UECxMQQU9MIFRlY2hub2xvZ2llczEnMCUGA1UEAxMeSW50cmFuZXQgQ2VydGlm aWNhdGUgQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDi718sdkOJSxpf s+X4qm+LL4FNZ/+9Sg9jLsTchfaeLEkmIP8AF+SIiGne/YNX4KMRGRGq1ty877PSFS5Uxm58 v9m5w0bTCQWE5VNcSO2EhZoOOz0WB1zws3mrmhClvMGk0XhMBuVkQfwFJWMm6+8Mx25UoYzO VFe2H5LashJLjQIDAQABo4IBgjCCAX4wTQYDVR0fBEYwRDBCoECgPoY8aHR0cDovL3d3dzEu dXMtaG9zdGluZy5iYWx0aW1vcmUuY29tL2NnaS1iaW4vQ1JML0dURVJvb3QuY2dpMB0GA1Ud DgQWBBQp27Itg35/iyO7wsxmuTnoKfMChjBmBgNVHSAEXzBdMEYGCiqGSIb4YwECAQUwODA2 BggrBgE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hKg0YNYDGHWBeJ1mwPqTYdUh5IyyusCpXoaBFVQAwi /53/17eS8xjvVUEOdgMmO/u92ZmWaDH7+mMQsxwMyR04hyZeqEODycK9nKfeJI0AAAAAAAA= --------------ms060601090503000803010906-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/