Re: [PATCH 2.6.12-rc4] cpuset exit NULL dereference fix

From: Paul Jackson
Date: Thu May 26 2005 - 13:48:33 EST


Linus wrote:
> For this, there is a nice
>
> atomic_dec_and_lock()
>
> function that is the same as "atomic_dec_and_test()", except it grabs the
> lock if the count decrements to zero.

If we take Robin's idea to add a spinlock per cpuset, then yes this
atomic_dec_and_lock() might be useful. Thanks for mentioning it.

I am not convinced we need to go that way. See my upcoming replies to
Simon and Robin, for alternative approaches that are simpler.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxxxxxxx> 1.650.933.1373, 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/