All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Tim Deegan <tim@xen.org>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] xenpaging: unify return value in nominate and evict
Date: Mon, 30 Jan 2012 11:24:12 +0100	[thread overview]
Message-ID: <20120130102412.GA9935@aepfle.de> (raw)
In-Reply-To: <20120130095129.GC96325@ocelot.phlegethon.org>

On Mon, Jan 30, Tim Deegan wrote:

> I don't think EAGAIN is the right thing to return here.  There's no
> reason to think that retrying an invalid GFN will work next time. 
> 
> I'd be happy for these cases all to return the same code, but maybe
> EINVAL would be a better choice. 

EINVAL is returned by upper layers already. I think both nominate and
evict should return EBUSY in case of failure, this is most likely unique
enough to mean "request reached target function, and failed.".

Olaf

  reply	other threads:[~2012-01-30 10:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-26 19:56 [PATCH] xenpaging: unify return value in nominate and evict Olaf Hering
2012-01-30  9:51 ` Tim Deegan
2012-01-30 10:24   ` Olaf Hering [this message]
2012-01-30 10:36     ` Tim Deegan
  -- strict thread matches above, loose matches on Subject: below --
2012-01-30 12:07 Olaf Hering
2012-01-31  9:33 ` Tim Deegan

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=20120130102412.GA9935@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.