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

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

 



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 <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux