linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Gardiner Myers <jgmyers@netscape.com>
To: Benjamin LaHaise <bcrl@redhat.com>
Cc: linux-aio@kvack.org, linux-kernel@vger.kernel.org,
	torvalds@transmeta.com
Subject: Re: [PATCH] aio updates
Date: Tue, 15 Oct 2002 13:50:40 -0700	[thread overview]
Message-ID: <3DAC7FA0.3060600@netscape.com> (raw)
In-Reply-To: 20021015155738.B16156@redhat.com

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

Benjamin LaHaise wrote:

>My 
>concern is that the way you've implemented NOOP does not allow for all 
>possible return codes to be passed in due to the error checking the 
>iocb submit code performs on the inputs.
>
Could you provide an example of a possible return code that cannot be 
passed in?  I know you can't pass a 64 bit return code on a 32 bit 
platform, but then neither can any other operation.

>It can also spuriously fail 
>if the filedescriptor field points to an fd that doesn't exist,
>
Currently the operation requires a valid fd just like every other 
operation does, so I don't consider such a failure to be spurious.

The alternative is to change the aio framework itself to support 
operations that don't work on fds.  That would move the fget() call and 
the overflow check to below where it sets req->ki_user_data.  The check 
for IOCB_CMD_NOOP would then go before the fget() call and overflow check.

If you think this is the way to go, I can code up patch to do this.


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3537 bytes --]

  reply	other threads:[~2002-10-15 20:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-15  1:17 [PATCH] aio updates John Myers
2002-10-15 19:57 ` Benjamin LaHaise
2002-10-15 20:50   ` John Gardiner Myers [this message]
2002-10-15 21:31     ` Benjamin LaHaise
2002-10-15 22:05       ` John Gardiner Myers
2002-10-15 22:08       ` John Gardiner Myers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DAC7FA0.3060600@netscape.com \
    --to=jgmyers@netscape.com \
    --cc=bcrl@redhat.com \
    --cc=linux-aio@kvack.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).