Re: [PATCH 4/6] lib/refcount: Move bulk of REFCOUNT_FULL implementation into header

2019-08-12 Thread Kees Cook
On Fri, Aug 09, 2019 at 05:04:28PM +0100, Will Deacon wrote: > On Fri, Aug 02, 2019 at 07:23:07PM -0700, Kees Cook wrote: > > On Fri, Aug 02, 2019 at 08:52:22PM +0200, Peter Zijlstra wrote: > > > On Fri, Aug 02, 2019 at 11:09:58AM +0100, Will Deacon wrote: > > > > In an effort to improve performanc

Re: [PATCH 4/6] lib/refcount: Move bulk of REFCOUNT_FULL implementation into header

2019-08-09 Thread Will Deacon
On Fri, Aug 02, 2019 at 07:23:07PM -0700, Kees Cook wrote: > On Fri, Aug 02, 2019 at 08:52:22PM +0200, Peter Zijlstra wrote: > > On Fri, Aug 02, 2019 at 11:09:58AM +0100, Will Deacon wrote: > > > In an effort to improve performance of the REFCOUNT_FULL implementation, > > > move the bulk of its fun

Re: [PATCH 4/6] lib/refcount: Move bulk of REFCOUNT_FULL implementation into header

2019-08-02 Thread Kees Cook
On Fri, Aug 02, 2019 at 08:52:22PM +0200, Peter Zijlstra wrote: > On Fri, Aug 02, 2019 at 11:09:58AM +0100, Will Deacon wrote: > > In an effort to improve performance of the REFCOUNT_FULL implementation, > > move the bulk of its functions into linux/refcount.h. This allows them > > to be inlined in

Re: [PATCH 4/6] lib/refcount: Move bulk of REFCOUNT_FULL implementation into header

2019-08-02 Thread Peter Zijlstra
On Fri, Aug 02, 2019 at 11:09:58AM +0100, Will Deacon wrote: > In an effort to improve performance of the REFCOUNT_FULL implementation, > move the bulk of its functions into linux/refcount.h. This allows them > to be inlined in the same way as if they had been provided via > CONFIG_ARCH_HAS_REFCOUN

[PATCH 4/6] lib/refcount: Move bulk of REFCOUNT_FULL implementation into header

2019-08-02 Thread Will Deacon
In an effort to improve performance of the REFCOUNT_FULL implementation, move the bulk of its functions into linux/refcount.h. This allows them to be inlined in the same way as if they had been provided via CONFIG_ARCH_HAS_REFCOUNT. Cc: Kees Cook Cc: Ingo Molnar Cc: Elena Reshetova Cc: Peter Zi