Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1660880
| From | "Reshetova, Elena" <elena.reshetova@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH v2] refcount: Create unchecked atomic_t implementation |
| Date | 2017-06-08 10:00 +0200 |
| Message-ID | <tQ0wh-1oo-1@gated-at.bofh.it> (permalink) |
| References | <tPVPX-6Nn-3@gated-at.bofh.it> <tPZAf-Nh-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> On Wed, Jun 07, 2017 at 07:58:31PM -0700, Kees Cook wrote: > > Many subsystems will not use refcount_t unless there is a way to build the > > kernel so that there is no regression in speed compared to atomic_t. This > > adds CONFIG_REFCOUNT_FULL to enable the full refcount_t implementation > > which has the validation but is slightly slower. When not enabled, > > refcount_t uses the basic unchecked atomic_t routines, which results in > > no code changes compared to just using atomic_t directly. > > > > Signed-off-by: Kees Cook <keescook@chromium.org> > > --- > > This is v2 of this patch, which I've split from the arch-specific > > alternative implementation for x86. Getting this patch in will unblock > > atomic_t -> refcount_t conversion, and the x86 alternative implementation > > can be developed in parallel. Changes from v1: use better atomic ops, > > thanks to Elena and Peter. > > Yeah, can we get this in ASAP? Without having to always incur the over > this will allow us to convert subsystems to refcount_t broadly. +1. If this gets in, I can refresh the rest of the patches in net, mm, ipc, block, etc. and send them for review again. Best Regards, Elena
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] refcount: Create unchecked atomic_t implementation Kees Cook <keescook@chromium.org> - 2017-06-08 05:00 +0200
Re: [PATCH v2] refcount: Create unchecked atomic_t implementation Greg KH <gregkh@linuxfoundation.org> - 2017-06-08 08:00 +0200
Re: [PATCH v2] refcount: Create unchecked atomic_t implementation Christoph Hellwig <hch@infradead.org> - 2017-06-08 09:00 +0200
RE: [PATCH v2] refcount: Create unchecked atomic_t implementation "Reshetova, Elena" <elena.reshetova@intel.com> - 2017-06-08 10:00 +0200
Re: [PATCH v2] refcount: Create unchecked atomic_t implementation Davidlohr Bueso <dave@stgolabs.net> - 2017-06-08 22:10 +0200
Re: [PATCH v2] refcount: Create unchecked atomic_t implementation Manfred Spraul <manfred@colorfullife.com> - 2017-06-09 06:30 +0200
Re: [PATCH v2] refcount: Create unchecked atomic_t implementation Peter Zijlstra <peterz@infradead.org> - 2017-06-09 09:30 +0200
csiph-web