Hi Amit, You didn't provide the full OOPs message. On Wed, 2009-04-22 at 22:04 +0530, amit mehta wrote: > > <snip> > [<c0104878>] apic_timer_interrupt+0x28/0x30 > [<f8e2d06f>] scst_cmd_thread+0x9c/0xfc [scst] > [<c011bbed>] default_wake_function+0x0/0x8 > [<f8e2cfd3>] scst_cmd_thread+0x0/0xfc [scst] > [<c012f5fa>] kthread+0x38/0x5d > [<c012f5c2>] kthread+0x0/0x5d > [<c0104a37>] kernel_thread_helper+0x7/0x10 > ======================= > <snip> > > > Apparently 'schedule' is throwing this message: > > if (unlikely(in_atomic() && !current->exit_state)) { > printk(KERN_ERR "BUG: scheduling while atomic: " > "%s/0x%08x/%d\n", > current->comm, preempt_count(), current->pid); > debug_show_held_locks(current) > ; > if (irqs_disabled()) > print_irqtrace_events(current); > dump_stack(); > } >From here it looks like, a lock is being held and schedule has been called. Himanshu -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ