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 pendin

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 a

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 ke

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 ha

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 kernel

Re: Queries on bottom halves

2018-09-01 Thread Abhinav Misra
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 ? 2. Why can't we sleep in tasklet and softriq ? BR,Abhinav ___

Re: Queries on bottom halves

2018-08-27 Thread Chinmay V S
> 1. Which stack does the bottom halves use for their execution ? Modern "bottom-half" implementations built on top of kernel threads use the stack of the underlying thread. (just like how any thread on the system does) > 2. Why can't we sleep in bottom halves ? We can! Modern bottom half implemen

Queries on bottom halves

2018-08-27 Thread Abhinav Misra
Hi, I have few queries regarding bottom halves- 1. Interrupts use their own per cpu stack for their execution.Which stack does the bottom halves use for their execution ? 2. Why can't we sleep in bottom halves ? BR,Abhinav ___ Kernelnewbies mailing li