From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rwfrf0qjDzDqYB for ; Fri, 22 Jul 2016 15:50:42 +1000 (AEST) In-Reply-To: <20160405190547.GA12673@us.ibm.com> To: Sukadev Bhattiprolu From: Michael Ellerman Cc: "Aneesh Kumar K.V" , linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, James Dykman Subject: Re: [1/1] powerpc/mm: Add memory barrier in __hugepte_alloc() Message-Id: <3rwfrd6Vq2z9sxb@ozlabs.org> Date: Fri, 22 Jul 2016 15:50:41 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2016-05-04 at 19:05:47 UTC, Sukadev Bhattiprolu wrote: > >From f7b73c6b4508fe9b141a43d92be2f9dd7d3c4a58 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Thu, 24 Mar 2016 02:07:57 -0400 > Subject: [PATCH 1/1] powerpc/mm: Add memory barrier in __hugepte_alloc() > > __hugepte_alloc() uses kmem_cache_zalloc() to allocate a zeroed PTE > and proceeds to use the newly allocated PTE. Add a memory barrier to > make sure that the other CPUs see a properly initialized PTE. > > Based on a fix suggested by James Dykman. > > Reported-by: James Dykman > Signed-off-by: Aneesh Kumar K.V > Signed-off-by: Sukadev Bhattiprolu > Tested-by: James Dykman Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/0eab46be21449f1612791201aa cheers