From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752180AbbD0Cus (ORCPT ); Sun, 26 Apr 2015 22:50:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44614 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751925AbbD0Cuq (ORCPT ); Sun, 26 Apr 2015 22:50:46 -0400 Message-ID: <553DA3FF.3000304@redhat.com> Date: Sun, 26 Apr 2015 22:50:39 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Mel Gorman , Linux-MM CC: Hugh Dickins , Minchan Kim , Dave Hansen , Andi Kleen , LKML Subject: Re: [PATCH 3/3] mm: Defer flush of writable TLB entries References: <1429983942-4308-1-git-send-email-mgorman@suse.de> <1429983942-4308-4-git-send-email-mgorman@suse.de> In-Reply-To: <1429983942-4308-4-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/25/2015 01:45 PM, Mel Gorman wrote: > If a PTE is unmapped and it's dirty then it was writable recently. Due > to deferred TLB flushing, it's best to assume a writable TLB cache entry > exists. With that assumption, the TLB must be flushed before any IO can > start or the page is freed to avoid lost writes or data corruption. This > patch defers flushing of potentially writable TLBs as long as possible. > > Signed-off-by: Mel Gorman Reviewed-by: Rik van Riel -- All rights reversed