<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 13, 2015 at 2:36 AM, Meyer Lansky <span dir="ltr">&lt;<a href="mailto:markus93@inbox.ru" target="_blank">markus93@inbox.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hello all<br><span lang="en"><span>continue to study</span> <span>the scheduler</span> <span>is O(1</span><span>)</span></span> <span lang="en"><span>there was</span> <span>one difficulty</span> <span>with the string</span></span> 2 <span lang="en"><span>on</span></span> 3, <span lang="en"><span>in</span> <span>that</span> <span>these</span> <span>blocking</span> <span>occurs after</span> <span>lines</span><span>?</span></span><br><span lang="en"><span>a reference to the</span> <span>code</span> <span>that</span> <span>study</span></span> - <a href="http://lxr.free-electrons.com/source/kernel/sched.c?v=2.6.36" target="_blank">http://lxr.free-electrons.com/source/kernel/sched.c?v=2.6.36</a><br><span lang="en"><span>what</span> <span>I learn</span> <span>on</span> <span>line</span></span> 4682 to 4695.<br><br>1š rcu_read_lock();<br>2šš pcred = __task_cred(p);<br>3šš match = (cred-&gt;euid == pcred-&gt;euid || <br>šššššššššššššššššššš cred-&gt;euid == pcread-&gt;uid);<br>4šš rcu_read_unlock();<br><br><span lang="en"><span>I ask</span> <span>because</span> <span>in the comments</span> <span>there</span> <span>is not</span> <span>described</span></span>.<br><span lang="en"><span>Thank.</span></span><br></div>
<br></blockquote><div><br></div><div>Hi<br><br></div><div>I am not clear about your question.<br><br></div><div>perhaps specifically you asked about why rcu_read_lock() is called?<br></div><div>š</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">regards,<br><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com">the-hydra.blogspot.com</a><br>training: <a href="http://mulyaditraining.blogspot.com">mulyaditraining.blogspot.com</a></div>
</div></div>