[lkml]   [1999]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Scheduling inside bottom-half
On Thu, 30 Sep 1999, Linux Lists wrote:

> Once this event occurs, the bottom-half will then "sleep" (using
> current->timeout / schedule) for one jiffy and then generate the

You may _never_ under any circumstances sleep outside of process context
(when int_count is non-zero on 2.0 or in_interrupt() returns true in 2.2).
Sleeping includes the forceful act of sleeping (ex. schedule()) and
anything that has the potential to sleep, such as non-atomic memory

You will need to find a different way to accomplish what you are trying to
do. If you need to perform an action at a later point, you can try a
kernel timer. If you only need to wait for a minute amount of time, you
can busy wait (such as udelay).

# bryan at terran dot org

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:54    [W:0.080 / U:0.476 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site