2011-08-30 11:28:14     scheduling while atomic problem

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-08-30 11:28:14     scheduling while atomic problem

Tim Liao (CHINA)

Message: 103203   

 

Hi,all

Did anyone know what caused "scheduling while atomic" ?

 

I use wait_event_interruptible() to wait for something happen, but it always show the "scheduling while atomic" message.

 

Thanks!!

TranslateQuoteReplyEditDelete

 

 

2011-08-31 22:25:15     Re: scheduling while atomic problem

Aaron Wu (CHINA)

Message: 103204   

 

Where did you call your wait_event_interruptible? You may want to check if you are calling some function that may cause the current process to sleep like wait_event, kmalloc without GFP_ATOMIC flag etc in an improper context, like in an atomic section, when you are holding some lock, or in an interrupt handler etc.

QuoteReplyEditDelete

 

 

2011-09-04 10:48:25     Re: scheduling while atomic problem

Tim Liao (CHINA)

Message: 103270   

 

Hi ,

 

Thanks for your response.

 

I call wait_event_interruptible() in the user context , after kick dma.

 

And I also call down_interruptible() before , because it is in the critical section.

 

I want to go to sleep and schedulling if dma didn't finish its job.

 

But it always show " scheduling while atomic " , I didn't know why it always show this message.

 

the code flow like this:

 

function()

 

{

 

down_interruptible()

 

...

 

start_dma();

 

wait_event_interruptible();

 

up();

 

}

 

 

 

Thanks!

Attachments

    Outcomes