From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964800AbbFJHvQ (ORCPT ); Wed, 10 Jun 2015 03:51:16 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:38860 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933443AbbFJHuj (ORCPT ); Wed, 10 Jun 2015 03:50:39 -0400 Date: Wed, 10 Jun 2015 09:50:34 +0200 From: Ingo Molnar To: Mel Gorman Cc: Andrew Morton , Rik van Riel , Hugh Dickins , Minchan Kim , Dave Hansen , Andi Kleen , H Peter Anvin , Linus Torvalds , Thomas Gleixner , Peter Zijlstra , Linux-MM , LKML Subject: Re: [PATCH 3/4] mm: Defer flush of writable TLB entries Message-ID: <20150610075033.GB18049@gmail.com> References: <1433871118-15207-1-git-send-email-mgorman@suse.de> <1433871118-15207-4-git-send-email-mgorman@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433871118-15207-4-git-send-email-mgorman@suse.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mel Gorman wrote: > + > + /* > + * If the PTE was dirty then it's best to assume it's writable. The > + * caller must use try_to_unmap_flush_dirty() or try_to_unmap_flush() > + * before the page any IO is initiated. > + */ Speling nit: "before the page any IO is initiated" does not parse for me. > + /* > + * Page is dirty. Flush the TLB if a writable entry > + * potentially exists to avoid CPU writes after IO > + * starts and then write it out here > + */ s/here/here. or: s/here/here: Thanks, Ingo