From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Subject: Re: [PATCH 21/23] KVM: PPC: Book3S PR: Use mmu_notifier_retry() in kvmppc_mmu_map_page() Date: Wed, 7 Aug 2013 14:28:50 +1000 Message-ID: <20130807042850.GE31007@iris.ozlabs.ibm.com> References: <20130806041259.GF19254@iris.ozlabs.ibm.com> <20130806042732.GA19254@iris.ozlabs.ibm.com> <6A3DF150A5B70D4F9B66A25E3F7C888D070FE023@039-SN2MPN1-012.039d.mgd.msft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Graf , Benjamin Herrenschmidt , "kvm-ppc@vger.kernel.org" , "kvm@vger.kernel.org" To: Bhushan Bharat-R65777 Return-path: Content-Disposition: inline In-Reply-To: <6A3DF150A5B70D4F9B66A25E3F7C888D070FE023@039-SN2MPN1-012.039d.mgd.msft.net> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, Aug 07, 2013 at 04:13:34AM +0000, Bhushan Bharat-R65777 wrote: > > > + /* used to check for invalidations in progress */ > > + mmu_seq = kvm->mmu_notifier_seq; > > + smp_rmb(); > > Should not the smp_rmb() come before reading kvm->mmu_notifier_seq. No, it should come after, because it is ordering the read of kvm->mmu_notifier_seq before the read of the Linux PTE. Paul.