<div dir="ltr">Appreciate the quick response..<div><br></div><div>Hi All,</div><div> i am concerned about the scheduling the tasklet. The running of the tasklet is anyway controlled by the kernel at its own dissertation.</div>
<div>But scheduling can be done from anywhere?? Correct?</div><div><br></div><div>Also can</div><div>Tasklets can be used for "any" deferred work or it is strictly stick to the work which can not be done in the "top" half??</div>
<div>For example, if there is some work which is prepared ready by a kernel thread (but thread dont want to process it immediately, rather want to deffer it for sometime) and the intention is to process this "prapared work" at some later time. In the situation like this, can we use the tasklet to do this?</div>
<div> </div><div> <br><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 6:28 AM, Pranay Srivastava <span dir="ltr"><<a href="mailto:pranjas@gmail.com" target="_blank">pranjas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><p dir="ltr"><br>
On May 13, 2014 2:36 AM, "Vishwas Srivastava" <<a href="mailto:vishu.kernel@gmail.com" target="_blank">vishu.kernel@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
> This may sound a dumb question. I just want to know if a tasklet can be scheduled from a kernel thread.</p>
</div><p dir="ltr">You can do tasklet_schedule in case I am getting your question.</p><div class="">
<p dir="ltr">> what are the pros and crons of doing so?</p>
</div><p dir="ltr">Don't sleep or schedule the tasklet code. It needs to be atomic since it runs via TASKLET_SOFTIRQ.</p><div class="HOEnZb"><div class="h5">
<p dir="ltr">> thanks,<br>
> Vishwas S<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">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>
</p>
</div></div></blockquote></div><br></div>