From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754060AbbCSQQR (ORCPT ); Thu, 19 Mar 2015 12:16:17 -0400 Received: from resqmta-ch2-03v.sys.comcast.net ([69.252.207.35]:35778 "EHLO resqmta-ch2-03v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbbCSQQP (ORCPT ); Thu, 19 Mar 2015 12:16:15 -0400 Date: Thu, 19 Mar 2015 11:16:13 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Joonsoo Kim cc: Mark Rutland , LKML , Andrew Morton , Catalin Marinas , David Rientjes , Jesper Dangaard Brouer , Joonsoo Kim , Linus Torvalds , Pekka Enberg , Steve Capper Subject: Re: [PATCHv2] mm/slub: fix lockups on PREEMPT && !SMP kernels In-Reply-To: Message-ID: References: <20150317120058.GC23340@leverpostej> <1426594533-18221-1-git-send-email-mark.rutland@arm.com> <20150318152130.GA19814@leverpostej> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Mar 2015, Joonsoo Kim wrote: > > I was under the impression that this_cpu operations would always result > > in an access, much like the *_ONCE accessors, so we should aways redo > > the access for this_cpu_read(s->cpu_slab->tid). Is that not the case? > > I'm not the expert on that operation. Christoph could answer it. this_cpu_read() always generates a load via an asm instruction.