Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: I mean kernel thread could sleep, but tasklet can't. If so, it meet my requirements. That's not really a justification to convert a tasklet to a kernel thread. I suspect the simplest solution to your problem would be to simply

Re: bugs in __schedule()

2007-06-26 Thread Satyam Sharma
On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: I mean kernel thread could sleep, but tasklet can't. If so, it meet my requirements. That's not really a justification to convert a tasklet to a kernel thread. I suspect the simplest solution to your problem would be to simply replace that semaphore

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Thanks, Satyam. So I can replace the tasklet with kernel thread? That depends on what you want to do ... [ BTW: I should correct a typo in my original reply -- I should've said "scheduling while atomic", and not "scheduling whi

Re: bugs in __schedule()

2007-06-26 Thread Satyam Sharma
On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Thanks, Satyam. So I can replace the tasklet with kernel thread? That depends on what you want to do ... [ BTW: I should correct a typo in my original reply -- I should've said "scheduling while atomic", and not "scheduling while interrupts disabled

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: Hi Gavin, On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Here is the all output I have: # ifconfig mgt0 10.0.51.27 BUG: scheduling while atomic: exe/0x0101/752 Yup, you can't sleep in taskets, they're atomic. caller is schedule+0x4c/0xe4 Call trace: [c02dc4dc] __sch

Re: bugs in __schedule()

2007-06-26 Thread Satyam Sharma
Hi Gavin, On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Here is the all output I have: # ifconfig mgt0 10.0.51.27 BUG: scheduling while atomic: exe/0x0101/752 Yup, you can't sleep in taskets, they're atomic. caller is schedule+0x4c/0xe4 Call trace: [c02dc4dc] __schedule+0x654/0x788 [c0

Re: bugs in __schedule()

2007-06-26 Thread gshan
Here is the all output I have: # ifconfig mgt0 10.0.51.27 BUG: scheduling while atomic: exe/0x0101/752 caller is schedule+0x4c/0xe4 Call trace: [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0226b60] mv_sw_read_reg+0x178/0x17c [c02296fc]

Re: bugs in __schedule()

2007-06-26 Thread Satyam Sharma
Hi Gavin, On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Anybody has suggestions on this crash? [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0226b60] mv_sw_read_reg+0x178/0x17c [c02296fc] mvSwIntrTasklet+0x128/0x744 [c0020afc] tasklet_

Re: bugs in __schedule()

2007-06-26 Thread gshan
The code is written by myself. 2 questions: 1) tasklet couldn't sleep? 2) It is because the tasklet take a semaphore? Thanks, Gavin Alexey Dobriyan wrote: On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Anybody has suggestions on this crash? talk to whoever supplied the following into your ker

Re: bugs in __schedule()

2007-06-26 Thread Alexey Dobriyan
On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Anybody has suggestions on this crash? talk to whoever supplied the following into your kernel: [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0226b60] mv_sw_read_reg+0x178/0x17c this [

bugs in __schedule()

2007-06-26 Thread gshan
Anybody has suggestions on this crash? [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0226b60] mv_sw_read_reg+0x178/0x17c [c02296fc] mvSwIntrTasklet+0x128/0x744 [c0020afc] tasklet_action+0x7c/0xec [c00204f4] ___do_softirq+0x80/0x11c [c00205cc