From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by kanga.kvack.org (Postfix) with ESMTP id B33BD6810D7 for ; Fri, 25 Aug 2017 20:31:54 -0400 (EDT) Received: by mail-oi0-f70.google.com with SMTP id 4so2048556oie.8 for ; Fri, 25 Aug 2017 17:31:54 -0700 (PDT) Received: from mail-oi0-x244.google.com (mail-oi0-x244.google.com. [2607:f8b0:4003:c06::244]) by mx.google.com with ESMTPS id g5si6252127oif.82.2017.08.25.17.31.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Aug 2017 17:31:53 -0700 (PDT) Received: by mail-oi0-x244.google.com with SMTP id d66so833372oib.3 for ; Fri, 25 Aug 2017 17:31:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <83f675ad385d67760da4b99cd95ee912ca7c0b44.1503677178.git.tim.c.chen@linux.intel.com> From: Linus Torvalds Date: Fri, 25 Aug 2017 17:31:52 -0700 Message-ID: Subject: Re: [PATCH 2/2 v2] sched/wait: Introduce lock breaker in wake_up_page_bit Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Tim Chen Cc: Mel Gorman , Peter Zijlstra , Ingo Molnar , Andi Kleen , Kan Liang , Andrew Morton , Johannes Weiner , Jan Kara , Christopher Lameter , "Eric W . Biederman" , Davidlohr Bueso , linux-mm , Linux Kernel Mailing List On Fri, Aug 25, 2017 at 4:03 PM, Linus Torvalds wrote: > > Let this be a lesson in just *how* little tested, and *how* crap that > patch probably still is. I haven't had time to look at it any more (trying to merge the pull requests that came in today instead), but the more I think about it, the more I think it was a mistake to do that page_wait_struct allocation on the stack. It made it way more fragile and complicated, having to rewrite things so carefully. A simple slab cache would likely be a lot cleaner and simpler. So even if that thing can be made to work, it's probably not worth the pain. Linus -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org