[Top] [All Lists]

Re: Atomicity & preemptive kernels

To: Jun Sun <>
Subject: Re: Atomicity & preemptive kernels
From: Justin Carlson <>
Date: 11 Jun 2002 12:56:59 -0700
In-reply-to: <>
References: <1023738247.1133.56.camel@localhost.localdomain> <> <1023753603.1152.28.camel@localhost.localdomain> <>
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...


<Prev in Thread] Current Thread [Next in Thread>