WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] [PVOPS] fix gntdev on PAE

On 06/01/2010 09:36 AM, Stefano Stabellini wrote:
>>> Performances shouldn't matter in this case.
>>> Something like this:
>>>   
>>>       
>> The problem is that the rcu lock disables preemption, so anything inside
>> it must be non-scheduling.  So it would need to be a spinlock type
>> thing, I think.
>>     
> right, in fact rwlock is a rw spinlock if I am not mistaken
>   

Ah, yes.  The problem with just making it a spinlock is that other parts
of the code do copy_from_user while holding it, so they would need to be
restructured to avoid that.

Also, rwlock is (almost?) never useful compared to a plain spinlock.

    J

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel