lkml.org 
[lkml]   [2014]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/7] slub: Fastpath optimization (especially for RT) V1
On Wed, 17 Dec 2014, Christoph Lameter wrote:

> On Wed, 17 Dec 2014, Joonsoo Kim wrote:
>
> > + do {
> > + tid = this_cpu_read(s->cpu_slab->tid);
> > + c = this_cpu_ptr(s->cpu_slab);
> > + } while (IS_ENABLED(CONFIG_PREEMPT) && unlikely(tid != c->tid));

Here is another one without debugging:

0xffffffff811d23bb <+59>: mov %gs:0x8(%r9),%rdx tid(rdx) = this_cpu_read()
0xffffffff811d23c0 <+64>: mov %r9,%r8
0xffffffff811d23c3 <+67>: add %gs:0x7ee37d9d(%rip),%r8 c (r8) =
0xffffffff811d23cb <+75>: cmp 0x8(%r8),%rdx c->tid == tid
0xffffffff811d23cf <+79>: jne 0xffffffff811d23bb <kmem_cache_alloc+59>

Actually that looks ok.



\
 
 \ /
  Last update: 2014-12-17 21:21    [W:0.107 / U:3.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site