linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Moyer <jmoyer@redhat.com>
To: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-fsdevel@vger.kernel.org,
	Christoph Hellwig <hch@infradead.org>
Subject: Re: [PATCH] aio: Do not return ERESTARTSYS as a result of AIO (v2)
Date: Fri, 10 Sep 2010 11:13:40 -0400	[thread overview]
Message-ID: <x49aanpocm3.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20100909215303.GB3281@quack.suse.cz> (Jan Kara's message of "Thu, 9 Sep 2010 23:53:04 +0200")

Jan Kara <jack@suse.cz> writes:

> On Thu 09-09-10 15:49:19, Jeff Moyer wrote:
>> Jan Kara <jack@suse.cz> writes:

>>   Next, assuming we can get ERSTARTSYS and friends, it will be the return
>>   code of a single iocb (reaped via io_getevents), not the return code of
>>   the io_submit system call.  I'm not saying this is right, I'm just
>>   saying that your description of the problem is misleading.
>> 
>> That objection stands, but just warrants correcting the problem description.
>   Hmm, I tried to address that by saying:
>
> As we must not leak ERESTARTSYS (and similar error codes) to userspace
> as a result of an AIO operation
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^
> by which I meant the result value in the iocb structure. But apparently
> it's not explicit enough. So would you be happier with something like
> "result received via io_getevents() syscall"?

That part looks fine, no need to change it.  What tripped me up was this: 

  (restarting the syscall isn't really an option because other AIO could
  have been already submitted by the same io_submit syscall)

To me, that sounded like the result would be seen by io_submit instead
of io_getevents.

Cheers,
Jeff

      reply	other threads:[~2010-09-10 15:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 19:36 [PATCH] aio: Do not return ERESTARTSYS as a result of AIO (v2) Jan Kara
2010-09-09 19:49 ` Jeff Moyer
2010-09-09 21:53   ` Jan Kara
2010-09-10 15:13     ` Jeff Moyer [this message]

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=x49aanpocm3.fsf@segfault.boston.devel.redhat.com \
    --to=jmoyer@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@infradead.org \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    /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).