<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 17 March 2014 14:12, Daniel Baluta <span dir="ltr"><<a href="mailto:daniel.baluta@gmail.com" target="_blank">daniel.baluta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On Mon, Mar 17, 2014 at 1:53 PM, Iulia Manda <<a href="mailto:iulia.manda21@gmail.com">iulia.manda21@gmail.com</a>> wrote:<br>

> In torture_shuffle_tasks function, the check if an all-zero mask can<br>
> be passed to set_cpus_allowed_ptr() is redundant after clearing the<br>
> shuffle_idle_cpu bit. If the mask had more than one bit set, after<br>
> clearing a bit it has at least one bit set. If the mask had only<br>
> one bit set, a check is made at the beginning, where the function<br>
> returns, as there is no need to shuffle only one cpu.<br>
><br>
> Also, this code is executed inside a critical section, delimited by<br>
> get_online_cpus() and put_online_cpus(), preventing CPUs from leaving between<br>
> the check of num_online_cpus and the calls to set_cpus_allowed_ptr().<br>
<br>
</div>Is this a kernel patch? If yes, which tree?<br>
<br>
I can't find kernel/torture.c in linux/ tree. There is only<br>
kernel/rcu/torture.c.<br>
<br>
thanks,<br>
Daniel.<br>
_______________________________________________<br>
firefly mailing list<br>
<a href="mailto:firefly@lists.rosedu.org">firefly@lists.rosedu.org</a><br>
<a href="http://lists.rosedu.org/listinfo/firefly" target="_blank">http://lists.rosedu.org/listinfo/firefly</a><br>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">It is a patch for -rcu tree (<span style="font-size:13px;font-family:arial,sans-serif">git://</span><a href="http://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git" target="_blank" style="font-size:13px;font-family:arial,sans-serif">git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git</a>),</div>
<div class="gmail_extra">on branch rcu/dev.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Iulia M.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
<br></div></div>