From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 29 Mar 2019 18:37:23 +0100 From: Oleg Nesterov Subject: Re: [PATCH] Convert struct pid count to refcount_t Message-ID: <20190329173723.GB23683@redhat.com> References: <20190327145331.215360-1-joel@joelfernandes.org> <20190328023432.GA93275@google.com> <20190328142619.GA19441@redhat.com> <20190328143958.GB261521@google.com> <20190329023456.GB194158@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190329023456.GB194158@google.com> To: Joel Fernandes Cc: Jann Horn , Kees Cook , "Eric W. Biederman" , LKML , Android Kernel Team , Kernel Hardening , Andrew Morton , Matthew Wilcox , Michal Hocko , "Reshetova, Elena" List-ID: 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.