Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp652145imu; Thu, 13 Dec 2018 02:01:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WwH5p29wllo0g8dR9+eM/R312PojmVS3TxRLRYPVfpWXnO5yCBUqmUN/0oIJ73cpbgqAFB X-Received: by 2002:a17:902:108a:: with SMTP id c10mr23428940pla.131.1544695309164; Thu, 13 Dec 2018 02:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544695309; cv=none; d=google.com; s=arc-20160816; b=p/Vv/nkuNARd7OEIKh1cZK+TF44GgI8zk9uTw1bQrXXDZzUyh3RKaKycUrja22sHPx n7db8gWWR1jcJhDyoUXJtfKszIemCscpJlsaTtk4mloQPJDwXs025T6FiYuwvHoUwr98 yXwHZfvlbhWww72lkmmEe5v5SCx6ff9obrjZ8/tLZLFvSM9MoluQ5j8Mz1y7wT9CU336 OYlI4v4S8quV2HM007oa1kY/hhTD1heO2kJmO1OAixVwvv1qzfk52ULGw5JEQRUiqHts LYJOJQZ0N3BEsRz/xPP8pmi8u+WLBDUuOG8kmB+ZtqrsGa9M+FRdKUE8H5IOkwc77cYH 0eqQ== 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; bh=7SiLBeVSlBFkxOAITVP+bepG0zmKrkeb0I6oefac1ew=; b=Gxn4TYEcCFT3jAKuYIa5cHiPxdL8Ez5uLO8PjM9MB7KLhZfzxKr1aH4aJSPP2Dz3uC NSBEFdYbFjYyaJSiodoHHlR12rghAR2edmT4Ay2kO5HU1cSc4QhPE3yFlTLMbff3EJ6W HuHLzVLdAwXvQDN3zshFDSs9/gtz7cSM4DplHzf4zGII+X/4pz6tmCiDmqnczYB47HzO PsvK/N9KVAyQf8VWLuzCIU1mLCMEsbCD5khMV2mHHrAlWUSuEGDG59EgPb5U9cxQci6W aB0CnzClob4l5SbPy2VA+2QHKHUroOQ2bhQ8zhJ4yfZbGydgmBGqT5ZKjYC1EpYLP53r s3ug== 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 p22si1244887pgl.340.2018.12.13.02.01.33; Thu, 13 Dec 2018 02:01:49 -0800 (PST) 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 S1727991AbeLMJ7h (ORCPT + 99 others); Thu, 13 Dec 2018 04:59:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:59918 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727718AbeLMJ7g (ORCPT ); Thu, 13 Dec 2018 04:59:36 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2FC82AE6B; Thu, 13 Dec 2018 09:59:34 +0000 (UTC) Date: Thu, 13 Dec 2018 10:59:31 +0100 From: Petr Mladek To: Daniel Wang Cc: Sergey Senozhatsky , Sasha Levin , Sergey Senozhatsky , Steven Rostedt , stable@vger.kernel.org, Alexander.Levin@microsoft.com, Andrew Morton , byungchul.park@lge.com, dave.hansen@intel.com, hannes@cmpxchg.org, jack@suse.cz, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mathieu Desnoyers , Mel Gorman , mhocko@kernel.org, pavel@ucw.cz, penguin-kernel@i-love.sakura.ne.jp, Peter Zijlstra , tj@kernel.org, Linus Torvalds , vbabka@suse.cz, Cong Wang , Peter Feiner Subject: Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes" Message-ID: <20181213095931.24qovurhtpa3jxzl@pathway.suse.cz> References: <20181212135939.GA10170@tigerII.localdomain> <20181212174333.GC2746@sasha-vm> <20181212214337.GD2746@sasha-vm> <20181212215225.GE2746@sasha-vm> <20181213022703.GD4860@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed 2018-12-12 18:39:42, Daniel Wang wrote: > > Additionally, for dbdda842fe96f to work as expected we really > need fd5f7cde1b85d4c. Otherwise printk() can schedule under > console_sem and console_owner, which will deactivate the "load > balance" logic. > > It looks like fd5f7cde1b85d4c got into 4.14.82 that was released last month. > > On Wed, Dec 12, 2018 at 6:27 PM Sergey Senozhatsky > wrote: > > > > On (12/12/18 16:40), Daniel Wang wrote: > > > In case this was buried in previous messages, the commit I'd like to > > > get backported to 4.14 is dbdda842fe96f: printk: Add console owner and > > > waiter logic to load balance console writes. But another followup > > > patch that fixes a bug in that patch is also required. That is > > > c14376de3a1b: printk: Wake klogd when passing console_lock owner. > > > > Additionally, for dbdda842fe96f to work as expected we really > > need fd5f7cde1b85d4c. Otherwise printk() can schedule under > > console_sem and console_owner, which will deactivate the "load > > balance" logic. To make it clear. Please, make sure that the following commits are backported together: + dbdda842fe96f8932ba ("printk: Add console owner and waiter logic to load balance console writes") + 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") I generated this list from git log using "Fixes:" tag. It seems to mention all commits dicussed above. Best Regards, Petr