From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754763AbdKAPgv (ORCPT ); Wed, 1 Nov 2017 11:36:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:60130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbdKAPgu (ORCPT ); Wed, 1 Nov 2017 11:36:50 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A671621908 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Wed, 1 Nov 2017 11:36:47 -0400 From: Steven Rostedt To: Petr Mladek Cc: Vlastimil Babka , Tetsuo Handa , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Sergey Senozhatsky , "yuwang.yuwang" Subject: Re: [PATCH] mm: don't warn about allocations which stall for too long Message-ID: <20171101113647.243eecf8@gandalf.local.home> In-Reply-To: <20171101133845.GF20040@pathway.suse.cz> References: <1509017339-4802-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <20171031153225.218234b4@gandalf.local.home> <187a38c6-f964-ed60-932d-b7e0bee03316@suse.cz> <20171101133845.GF20040@pathway.suse.cz> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 Nov 2017 14:38:45 +0100 Petr Mladek wrote: > This was my fear as well. Steven argued that this was theoretical. > And I do not have a real-life bullets against this argument at > the moment. And my argument is still if such a situation happens, the system is so fscked up that it should just crash. > > My current main worry with Steven's approach is a risk of deadlocks > that Jan Kara saw when he played with similar solution. And if there exists such a deadlock, then the deadlock exists today. > > Also I am afraid that it would add yet another twist to the console > locking operations. It is already quite hard to follow the logic, > see the games with: > > + console_locked > + console_suspended > + can_use_console() > + exclusive_console > > And Steven is going to add: > > + console_owner > + waiter Agreed. Console_lock is just ugly. And this may just make it uglier :-/ > > But let's wait for the patch. It might look and work nicely > in the end. Oh, I need to write a patch? Bah, I guess I should. Where's all those developers dying to do kernel programing where I can pass this off to? -- Steve