Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933142AbcL0TdW (ORCPT ); Tue, 27 Dec 2016 14:33:22 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:33871 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755038AbcL0TdP (ORCPT ); Tue, 27 Dec 2016 14:33:15 -0500 MIME-Version: 1.0 In-Reply-To: References: <20161225030030.23219-1-npiggin@gmail.com> <20161225030030.23219-3-npiggin@gmail.com> <20161226111654.76ab0957@roar.ozlabs.ibm.com> <20161227211946.3770b6ce@roar.ozlabs.ibm.com> From: Linus Torvalds Date: Tue, 27 Dec 2016 11:24:16 -0800 X-Google-Sender-Auth: oGq4TyzwWhKm-qZHidTizeBq1os Message-ID: Subject: Re: [PATCH 2/2] mm: add PageWaiters indicating tasks are waiting for a page bit To: Nicholas Piggin Cc: Dave Hansen , Bob Peterson , Linux Kernel Mailing List , Steven Whitehouse , Andrew Lutomirski , Andreas Gruenbacher , Peter Zijlstra , linux-mm , Mel Gorman Content-Type: multipart/mixed; boundary=94eb2c19d67654b37b0544a8cc8b Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4470 Lines: 71 --94eb2c19d67654b37b0544a8cc8b Content-Type: text/plain; charset=UTF-8 On Tue, Dec 27, 2016 at 11:23 AM, Linus Torvalds wrote: > > Of course, none of this is *tested*, but it looks superficially > correct, and allows other architectures to do the same optimization if > they want. Oops. I should include the actual patch I was talking about too, shouldn't I? Linus --94eb2c19d67654b37b0544a8cc8b Content-Type: text/plain; charset=US-ASCII; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ix7wil490 IGFyY2gveDg2L2luY2x1ZGUvYXNtL2JpdG9wcy5oIHwgMTMgKysrKysrKysrKysrKwogaW5jbHVk ZS9saW51eC9wYWdlLWZsYWdzLmggICAgfCAgMi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