lkml.org 
[lkml]   [1999]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] entry.S calling schedule() with interrupts disabled, 2.2.2
Date
> schedule() with interrupts disabled, and remove that __sti() from the
> context switch path :) After changing sleep_on* and ret_from_irq i can see
> no other places that call schedule() with interrupts disabled.

Look harder, lots of drivers and net stuff does. Its a standard scheme to
avoid races

cli();
while(foo)
{
if(something_case)
break;
sleep_on*(&blah);
}
restore_flags(flags);

Alan


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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