From: "Ky Srinivasan" Subject: Re: swiotlb Date: Fri, 14 Apr 2006 07:36:21 -0600 Message-ID: <443F6D14.E57C.0030.0@novell.com> References: <443E7C63.E57C.0030.0@novell.com> <4bd26d7fa47cf8b771cfc14c72a260af@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4bd26d7fa47cf8b771cfc14c72a260af@cl.cam.ac.uk> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org That should do the trick. K. Y >>> Keir Fraser 04/14/06 2:50 am >>> On 13 Apr 2006, at 21:29, Ky Srinivasan wrote: > Given that the function __sync_single() can be called in an interrupt > context, why do we call a potentially blocking function > (__copy_to_user) from within this function? Good point. Would __copy_to_user_inatomic() be safe? It avoids might_sleep(). We know that the page fault itself (if any) will not block on I/O -- we only use __copy_to_user() to safely catch the fault and return. -- Keir _______________________________________________ Xen- devel mailing list Xen- devel@lists.xensource.com http://lists.xensource.com/xen- devel