On Wed, 2019-08-21 at 17:33 -0700, Sean Christopherson wrote: > On Thu, Aug 22, 2019 at 02:29:01AM +0300, Jarkko Sakkinen wrote: > > The existence of the page is checked first hand for legit race > > conditions (either two or more concurrent threads running the #PF > > handler or the reclaimer has taken over the page): > > > > /* Page is already resident in the EPC. */ > > if (entry->epc_page) { > > if (entry->desc & SGX_ENCL_PAGE_RECLAIMED) > > return ERR_PTR(-EBUSY); > > > > return entry; > > } > > > > After that the existence is a checked as a condition for ELDU. > > > > This commit removes the redundant check. > > > > Cc: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> > > --- > > Ha, I remember seeing this a while back and completely forgot about it. > > Reviewed-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> [I guess for this ack-by would be appropriate as they are not mainline patches] Thanks Sean. These kind of regression are almost unavoidable because of heavy rebasing... /Jarkko