Re: Atomicity & preemptive kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2002-06-11 at 11:44, Jun Sun wrote:

> I see your point now.
> 
> However, the race is not there.  switch_mm() is only called from inside 
> schedule() function, which as a whole is preemption-safe.  In other words, the 
> above event sequence won't cause a context switch until we exit from 
> schedule() function.
> 

Yes, but the initial code I cited was explicitly not in the schedule
function.  It was an icache_flush_page() implementation.

Just something to be careful of.  I think it's going to bite more than a
few people as a bug that's about impossible to track down...

-Justin

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux