Thread (32 messages) 32 messages, 4 authors, 2013-01-21

Re: [RFC][PATCH v3] slub: Keep page and object in sync in slab_alloc_node()

From: Christoph Lameter <hidden>
Date: 2013-01-21 01:40:44
Also in: linux-mm, lkml

On Fri, 18 Jan 2013, Eric Dumazet wrote:
On Fri, 2013-01-18 at 18:40 +0000, Christoph Lameter wrote:
quoted
The fetching of the tid is the only critical thing here. If the tid is
retrieved from the right cpu then the cmpxchg will fail if any changes
occured to freelist or the page variable.

The tid can be retrieved without disabling preemption through
this_cpu_read().
Strictly speaking, this_cpu_read() _does_ disable preemption.
Yes on x86 the relocation and the fetch is just a single instruction and
therefore no preemption can occur.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help