Re: Queries on bottom halves

2018-09-02 Thread Larry Chen
Hi Abhinav, On 09/02/2018 11:28 PM, Abhinav Misra wrote: Hi Larry, Based on your answers below are my further queries. 1. *Does softirq and tasklet will always runs in ksoftirqd thread context ?* As it is mentioned in the LKD (by robert love Pg-138) that there are multiple places where

Re: Queries on bottom halves

2018-09-02 Thread Greg KH
On Sun, Sep 02, 2018 at 01:39:07PM -0400, valdis.kletni...@vt.edu wrote: > On Sun, 02 Sep 2018 20:58:14 +0530, Abhinav Misra said: > > > But if in new kernel this implementation is changed then why we need so > > many options to defer the work as all of them are basically getting > > executed in

Re: Queries on bottom halves

2018-09-02 Thread valdis . kletnieks
On Sun, 02 Sep 2018 20:58:14 +0530, Abhinav Misra said: > But if in new kernel this implementation is changed then why we need so > many options to defer the work as all of them are basically getting > executed in almost the same way.* In that case code running softirq, > tasklet, workqueue and

Re: Queries on bottom halves

2018-09-02 Thread Abhinav Misra
Hi Larry, Based on your answers below are my further queries. 1. *Does softirq and tasklet will always runs in ksoftirqd thread context ?* As it is mentioned in the LKD (by robert love Pg-138) that there are multiple places where pending softirq's are checked. Out of that one is in return from

Re: Queries on bottom halves

2018-09-02 Thread Larry Chen
Hello Abhinav, On 09/01/2018 04:05 PM, Abhinav Misra wrote: Hi, Sorry for the delay in the reply. I think the question is not correctly framed. Will try to do it again. 1. Which stack does the tasklet, softriq and workqueue use for their execution ? Softirq actually is a group of N