Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2463180pxj; Mon, 10 May 2021 03:41:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU+0ho/wl3AtSSdcrU275h9bC3kEJfEEzssGShPk5+5fR0p2T5WhomP5fcugz8vdzli7Ek X-Received: by 2002:a17:907:2663:: with SMTP id ci3mr24727603ejc.540.1620643296400; Mon, 10 May 2021 03:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620643296; cv=none; d=google.com; s=arc-20160816; b=udwTqrfg4lS1Fl579waqecdLEr1oZ8Ir7VwjYjHpAAcJCWPiekyIAcTWd/8E0SnFnY tznt5TTCFwI6gvSW3DPM/z2RbXsmxJZTt/iK1UMtkNQqreWGK6kjJrViebfeGty8lHIQ SdMItidbKB0zsyYbxxluWFWAOcBkal8pBfr7tOXhEGLZt9/WZZAW4RvFtSfWfL6RrxpM LgH8RrEQ6BlHiW0dyeQGj9RzZ2UaG0yQnH22cIh7Xl7NcoYfFUencRLULd+wQSa6Vhgr Zp77NPDkSxetMuzwWZW55NU4dUA83bS3vrknstqF4rfKg6yfoFs0COcpCahKzodfx3kP 1CEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=f2ABzFwgpTaNmSQzmNszmV3x7ptxwfOXkhkDPBcLXTA=; b=dqAx+e1LvF57lQE7Oop4F+P7l71dC5nEezloUZvsTP0GG63BFphVJP6/iS5ejWUOP8 BMjicJDkIEl1ZnFHK4WIPhzh2FotIW6dm/TGJXNG6QWLEjlClsWiZozMbFaYf5Rtraoy GmzFk4v667g5+NLm6uHdbCZO+RPnrRtXEsewZeBBMD+DUOhCTFafG3z4tvPbroRN3RqY CR+FaOo19vdDRPlAxHergKfy6TxumJOiZ7GlSLXrLLX9wlSlDH7cd6+8umUz2PQpyPtE FdXJM3mkId9iuDj2UTM7KxYpPadFt7CWGS+l63WO3IZmFCRHE4CciRJpvU3d7rrNV02R nKKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iewf3RLK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nuiU5hD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si12504543edm.99.2021.05.10.03.41.12; Mon, 10 May 2021 03:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iewf3RLK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nuiU5hD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231310AbhEJKhx (ORCPT + 99 others); Mon, 10 May 2021 06:37:53 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:36184 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231797AbhEJKdJ (ORCPT ); Mon, 10 May 2021 06:33:09 -0400 From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620642722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f2ABzFwgpTaNmSQzmNszmV3x7ptxwfOXkhkDPBcLXTA=; b=iewf3RLKD70SxS8pcWTZZgqtmAjkfyufDdjPACvnAduUe7C5yWbOn6+Q6BwqaQPPkAaZyU 6F1tgHq0FjNhmziAp6iy49PRuu/gqPS85jhW1khDVqBQngTclNg/LCIyN/i07fYxOaggsK jE4PN4kgt2GIap9afY/S0V4l2AO+UEbu5ftzvyKdu0gadFmskerHZ1/F0+kdgzQVu7Lanf +5/zby8m8c7rKd5SHNf3tS6/ktJ3orV1Gjp91Fgytpv96YbqYU2L11v+dwEF6QiHvDNcHS q45OimTkmIYeoLbjNzTnqHyis6HSnWvk7lRbcvqHZ1JByy+yxpZZBxN/jhvVzw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620642722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f2ABzFwgpTaNmSQzmNszmV3x7ptxwfOXkhkDPBcLXTA=; b=nuiU5hD3oBZsdBwLk/r9mRamTgZGB87qxVynXYifEPVYuD2ZxByQswCHjPAkQHq+RJ0TrT NuK4gvBdVZpdfhBQ== To: Petr Mladek , Sergey Senozhatsky Cc: Luo Jiaxing , sergey.senozhatsky@gmail.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, bobo.shaobowang@huawei.com Subject: Re: [PATCH] printk: stop spining waiter when console resume to flush prb In-Reply-To: References: <1620288026-5373-1-git-send-email-luojiaxing@huawei.com> Date: Mon, 10 May 2021 12:32:01 +0200 Message-ID: <871raeop5q.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-05-10, Petr Mladek wrote: > The current plan is to move console work to kthreads (separate > preemptive context). Using IRQ is a complete opposite way. > > There is always the fight between getting the messages out as soon > as possible and the risk of breaking the system (softlockups, > deadlocks). > > The kthread approach reduces the risk of system breakage to a bare > minimum. The price is that some messages might never reach console. > There is finally a consensus to give it a try. If it fails, we might > start looking for alternatives again. +1 I think it is clear that any such fixups will disappear once atomic-consoles and console printing kthreads arrive. That doesn't mean we should ignore the fixups. We just need to decide if it is a real problem that needs our immediate attention, thus warranting a fixup in the current implementation. I can see the suspend/resume issue might be a real problem. If this should be addressed now, I would support Petr's patch, forcing the backlog to be printed in the preemptible resuming context. But let's just keep it a suspend/resume fixup. I do not think we want to start playing with how console_unlock() behaves. John Ogness