Re: [PATCH] Convert struct pid count to refcount_t

From: Oleg Nesterov
Date: Fri Mar 29 2019 - 13:37:29 EST


On 03/28, Joel Fernandes wrote:
>
> Also Oleg, why not just call refcount_dec_and_test like below?

Of course we can, this is just optimization to avoid the atomic op if possible.

Does this optimization really help? I have no idea ;)

But as you can see, it surely helps to provoke the interesting discussions!

Oleg.