Received: by 10.213.65.68 with SMTP id h4csp2326455imn; Mon, 9 Apr 2018 01:20:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx48XAmzECg+5jxUcyAxXhghLegxoKCIdMVHiO2ofk/ZFrEG0b6xMEpn2Ac8SjCrnAnK9ua54 X-Received: by 2002:a17:902:8212:: with SMTP id x18-v6mr38771131pln.372.1523262017408; Mon, 09 Apr 2018 01:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523262017; cv=none; d=google.com; s=arc-20160816; b=o+RdmNY+cFHtQXBSAdNIfr5V1kfoPlTg/pwIqHOMy+2ANMAYXgpCTlwbufbaAk3eef KQLXQh4VY4GQMixi0RL40G4RqdkZEVa6LJkVRleyzyVcCoXviUTR5B/hHmHuxhAzNQST ky+wO9wGSURfCw2wl2mmCn2PDhCBqhoEXS0Kj1Pdd9jQQ5YFxx4gDqYIutlyK6sC9XCa 3dgY352wm+W3orSBGYNbnzt/xz9/zutAotDJLdwDuQ3JDeVQhsq7jC+riqCvYHRxv84v Qm5l3QzUSvBOaUiS0WPwa6nwSvnUzF5IMlnAyf+NiMxDrDETBJp+noKaz/8AD0xf7Xbq D1DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=UPpA/MttgjqV0dkq6ATXpMnXO6a9TXzSiY1WflDpxZg=; b=cJsGVk5cl+ysRuqifIQbbeIccEJ8kTPgDZsXbS+mLxsgu4jr4D4Moq6WZb1S6m4osn ebdFUT9T1AXJ5e4yMLKbxN8AFzeL3nC0naL0NHm3NLC5dWdvQD3hd2atgsqjD1KWwnhN eI4qVVRonI6CeBWDGcRWOhVRTeNYFNgUXck+ms4qyfU+2C74mdBwCGtFJMFRARexGUVi 2l5JPy5riLv6+FttSjUY8yDJANvR5oDZULUHFzSqSZc0EgbFWLxPuVDXfzlLnjdCnMMw r2dPwh95e9ouRow5jzRakCXHVVRx6YQtgteLLetqzfEnshgHpqL3dIKQT8SkKYWmkmFp e+AQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l28si10973088pgn.166.2018.04.09.01.19.40; Mon, 09 Apr 2018 01:20:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752372AbeDIIPm (ORCPT + 99 others); Mon, 9 Apr 2018 04:15:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:43346 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752081AbeDIIPk (ORCPT ); Mon, 9 Apr 2018 04:15:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E1BC4ADCC; Mon, 9 Apr 2018 08:15:37 +0000 (UTC) Date: Mon, 9 Apr 2018 10:15:35 +0200 From: Petr Mladek To: Sasha Levin Cc: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Steven Rostedt (VMware)" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Vlastimil Babka , Peter Zijlstra , Linus Torvalds , Jan Kara , Mathieu Desnoyers , Tetsuo Handa , Byungchul Park , Tejun Heo , Pavel Machek Subject: Re: [PATCH AUTOSEL for 4.15 019/189] printk: Add console owner and waiter logic to load balance console writes Message-ID: <20180409081535.dq7p5bfnpvd3xk3t@pathway.suse.cz> References: <20180409001637.162453-1-alexander.levin@microsoft.com> <20180409001637.162453-19-alexander.levin@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180409001637.162453-19-alexander.levin@microsoft.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2018-04-09 00:16:59, Sasha Levin wrote: > From: "Steven Rostedt (VMware)" > > [ Upstream commit dbdda842fe96f8932bae554f0adf463c27c42bc7 ] > > This patch implements what I discussed in Kernel Summit. I added > lockdep annotation (hopefully correctly), and it hasn't had any splats > (since I fixed some bugs in the first iterations). It did catch > problems when I had the owner covering too much. But now that the owner > is only set when actively calling the consoles, lockdep has stayed > quiet. I do not think that this is a material for stable backports. Yes, it is a fix but it is not trivial. There are already 3 follow up commits: c162d5b4338d72deed6 ("printk: Hide console waiter logic into helpers") fd5f7cde1b85d4c8e09 ("printk: Never set console_may_schedule in console_trylock()") c14376de3a1befa70d9 ("printk: Wake klogd when passing console_lock owner") One is just a code clean up but the other two are changes/fixes that should go together with Steven's patch. These changes tries to prevent softlockups. It is a problem that is being discussed for years. We are still waiting for feedback to see if more changes will be necessary. IMHO, there is no reason to hurry and backport it everywhere. Best Regards, Petr