From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] xenpaging: unify return value in nominate and evict Date: Mon, 30 Jan 2012 11:24:12 +0100 Message-ID: <20120130102412.GA9935@aepfle.de> References: <20120130095129.GC96325@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20120130095129.GC96325@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.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