lkml.org 
[lkml]   [2018]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: SLAB_TYPESAFE_BY_RCU without constructors (was Re: [PATCH v4 13/17] khwasan: add hooks implementation)
    On Tue, Jul 31, 2018 at 7:41 PM, Eric Dumazet <edumazet@google.com> wrote:
    > On Tue, Jul 31, 2018 at 10:36 AM Christopher Lameter <cl@linux.com> wrote:
    >
    >>
    >> If there is refcounting going on then why use SLAB_TYPESAFE_BY_RCU?
    >
    > To allow fast reuse of objects, without going through call_rcu() and
    > reducing cache efficiency.
    >
    > I believe this is mentioned in Documentation/RCU/rculist_nulls.txt


    Is it OK to overwrite ct->status? It seems that are some read and
    writes to it right after atomic_inc_not_zero.

    \
     
     \ /
      Last update: 2018-07-31 19:52    [W:8.844 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site