lkml.org 
[lkml]   [2003]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.5.71-mm1] aio process hang on EINVAL
Daniel McNeil wrote:

>I prefer getting the error on io_submit.
>
>
I prefer getting the error on io_getevents(). The code that handles the
output of io_getevents() already has to handle per-operation errors.
The only thing user space can reasonably do with errors returned by
io_submit() is to retry or assert. Anything else would duplicate logic
that already has to be in and is better handled by the code that handles
the output io_getevents().

io_submit() should only return errors in cases where the caller is
obviously buggy/malicious or in cases where it is not possible to
generate an event.


[unhandled content-type:application/x-pkcs7-signature]
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.069 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site