Re: [PATH -mm -v2] Fix a race condtion of oops_in_progress

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Snook
Date: Friday, October 31, 2008 - 9:42 am

Huang Ying wrote:

atomic_read() and atomic_set() don't inherently cause changes to be visible on 
other CPUs any faster than ++ and -- operators.  Sometimes it happens to work 
out that way as a result of how the compiler and the CPU order operations, but 
there's no semantic guarantee, and it could even take arbitrarily long under 
some circumstances.  If you want to use atomic ops to close the race, you need 
to use barriers.

-- Chris
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATH -mm -v2] Fix a race condtion of oops_in_progress, Chris Snook, (Fri Oct 31, 9:42 am)
Re: [PATH -mm -v2] Fix a race condtion of oops_in_progress, KOSAKI Motohiro, (Mon Nov 10, 12:35 am)