Roland Dreier wrote:
> I don't see any documented restrictions about preemption being
> disabled when this function is called, but...
>
>  > +int on_one_cpu(int cpu, void (*func) (void *info), void *info,
>  > +         int retry, int wait)
>  > +{
>  > +  int ret;
>  > +  int this_cpu;
>  > +
>  > +  this_cpu = get_cpu();
>
> what if a preempt and reschedule to a different CPU happens right
> here, after this_cpu is set?
>
>  > +  if (this_cpu == cpu) {
>   

get_cpu() disables preemption (the return value would be meaningless 
otherwise).


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to