Re: [COUNTERPATCH] mm: avoid overflowing preempt_count() in mmu_take_all_locks()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Arcangeli
Date: Thursday, April 1, 2010 - 10:04 am

On Thu, Apr 01, 2010 at 06:49:52PM +0200, Peter Zijlstra wrote:

You'd simply need to atomic_dec_and_test instead of atomic_dec above,
then you free it there above and return NULL.

The bug is to ever call atomic_dec instead of always
atomic_dec_and_test all over the place. I doubt you could fix it with
a -1.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [COUNTERPATCH] mm: avoid overflowing preempt_count() i ..., Andrea Arcangeli, (Thu Apr 1, 10:04 am)