From: Keir Fraser Subject: Re: swiotlb Date: Fri, 14 Apr 2006 07:50:21 +0100 Message-ID: <4bd26d7fa47cf8b771cfc14c72a260af@cl.cam.ac.uk> References: <443E7C63.E57C.0030.0@novell.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <443E7C63.E57C.0030.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ky Srinivasan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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