Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3284664imm; Sun, 17 Jun 2018 16:00:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIWTy1mdqYsFxEEadMPvk6VO4ZxYeg7rsdKR1ECJXdBMtKqlQoPjov2Tr3mhrsJgG17ZEao X-Received: by 2002:a17:902:be0b:: with SMTP id r11-v6mr11810977pls.182.1529276426554; Sun, 17 Jun 2018 16:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529276426; cv=none; d=google.com; s=arc-20160816; b=T2TJRykyuqEGLWYY2DSswAE/n8kl9RCT7Zj7odT1g8T2AKxu5S9S7u3rk60K5QdJjf xHJtJVSQA3IS+yw0YGHSrkI10FxiwWF/n+9/qb+ZcEk3L/2SL8eUhbuzA30j8N807x0r a9wL1RBaQ/TLP81WHXjU39tLCOhf3ZcqF9rVIUaSzEMsk8qQ0BCgomaNDX/wU92Bw8S/ qUwdqd8DqUlIQhEMZkWqiE8yfebNIP+H35J4XTPJKQ2csOwUOtqL9Dc4Dds05/QX4k2q pgH0lAJQGhy9sILJbl89GYR6zufayMW+/jtdT9cWEyLl+FKHnOlmiTsuJFZ7WxpfvQj/ qsDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HuQ/rOQfuykGNRh7B1gAYf/iZ8DQ+lM7rwBaMHv5eGA=; b=LPBQ3e3Esl3RvAostF0AWeZ7XvqIK/gNkzA1oansj5QcDgIgLqtWfALSGihttfebg9 Mn1yd1FQloGsCstn2quL1GSMI4DRClCgjA38EhiNKS30V35HxwyROLWHIFCx5iA09qde KMyxIyeA6/z3/nzOIrSusdEn1ekCfPnCbyuZvit9+oFovy13+wyU2qLAA43rdy+WBqel Enh0ywzcLOYc57WJ0Oz4IzKhdp6TibJ3Lpv/Aw2P+CGMaFFjnBZK4Tn4W3NpoyxJiSoC Y+m9Cw6yhZVWJtvm8ZZ/GJstNuvf6rnPp/0koaoSXXgb/sVktIFCgGeIidVeJRfQoli0 wGQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BmOj2Qil; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11-v6si13794800pla.184.2018.06.17.16.00.11; Sun, 17 Jun 2018 16:00:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BmOj2Qil; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753677AbeFQWuu (ORCPT + 99 others); Sun, 17 Jun 2018 18:50:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57560 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751868AbeFQWut (ORCPT ); Sun, 17 Jun 2018 18:50:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HuQ/rOQfuykGNRh7B1gAYf/iZ8DQ+lM7rwBaMHv5eGA=; b=BmOj2QilFr62G/Xrs5tSbj+nA EzkRcLR+0LCWB/+mFvcj0zsn4+UlDyTFBKqKzopaf8b5198vuInF10hsaoirMQJlRmvvK0tU2sFan k5LC4RHFZpYDZHxDmGUUZHl0AEUi4n/OZoNQGmW5zJMkUoqeVYJZsXFjdgzYxJ9RlkPhXB5sxBs6M wbW7VtEH5wGpkGhvlWsxEeDQQqCvY93ldueFOrylWRIYY93b2yE5Onrn3IOokbeCsH9B+AlCBDr9k /sm4TgAI8+8T6N60zvldZoBbGSoEjtZ9UpfTfpZWOJNENml9PF8MaWGOFTccpHUjXhU024AO/LAOG fiJTODvlg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUgVS-0002WV-B2; Sun, 17 Jun 2018 22:50:46 +0000 Date: Sun, 17 Jun 2018 15:50:46 -0700 From: Matthew Wilcox To: Stafford Horne Cc: LKML , Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org Subject: Re: [PATCH] openrisc: Call destructor during __pte_free_tlb Message-ID: <20180617225046.GB21805@bombadil.infradead.org> References: <20180617221243.10126-1-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180617221243.10126-1-shorne@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 07:12:42AM +0900, Stafford Horne wrote: > During the __pte_free_tlb path openrisc fails to call the page > destructor which would clear the new bits that were introduced. > To fix this we are calling the destructor. > > It seem openrisc was the only architecture missing this, all other > architectures either call the destructor like we are doing here or use > pte_free. It may be worth noting that failing to call the destructor was also messing up the zone stats (and would be causing other problems if you were using SPLIT_PTE_PTLOCKS). At any rate, Acked-by: Matthew Wilcox