From: Ian Jackson Subject: Re: [PATCH] Only retry mapping pages when ENOENT is returned Date: Tue, 3 Jan 2012 17:01:28 +0000 Message-ID: <20227.13416.459908.208375@mariner.uk.xensource.com> References: <14d42c7d8e0817040186.1324094120@dev.gridcentric.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <14d42c7d8e0817040186.1324094120@dev.gridcentric.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Adin Scannell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Adin Scannell writes ("[Xen-devel] [PATCH] Only retry mapping pages when ENOENT is returned"): > Only retry mapping pages when ENOENT is returned > > If the return value from the ioctl() is not ENOENT, it's possible that err[i] > will not be updated and libxc will just loop forever. Although it's unlikely > that err[i] would not be updated after the ioctl() gets through at least once, > it's better to be defensive. I confess I don't understand the intended error handling here. AFAICT this ioctl leaves a separate errno value for each request, in the array. Presumably, however, it can also fail entirely and not update the separate in-array errno values. So how does one tell which of these is the case ? CCing Jan since it looks like his code originally, in 20791:0b138a019292 Ian.