Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp859279pxb; Thu, 21 Apr 2022 11:58:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVdHVLVG91A5uFuhPkJhL5ufMEmh8Ud/WM1QqRu33UkxEnZVulRHHctIkVaorrGN8hTNGU X-Received: by 2002:a50:d78e:0:b0:416:2cd7:7ac5 with SMTP id w14-20020a50d78e000000b004162cd77ac5mr1028409edi.320.1650567525551; Thu, 21 Apr 2022 11:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650567525; cv=none; d=google.com; s=arc-20160816; b=mBdmfD8uee/SDbQ3ocSCOewW9owEhfIdbbJlVov010T8z5lgGy1ja0I8WtBPMSWWst dG+yAUDMTHuLH2pValCiXzU/FDS66Iw7g0qHvaurjqj/hKKosDY8r4UIosrV5vBwv7fV Lp+QiOo1j7owO8aDCXyun6GjReGBBHqpl1bj7w+ZBXy+BCoSqBffjiU/0nu3lgfrSkdX AFGFvxp0gAqRDsCQZPpHqry0ady+1jghyPEx0D5AV3xeG6X4jpDhbXCssge2ZdI20jpG ayxVdv6UXr8T90OI+CowAPG46dlM2FVKhISxR36wd+FUwnnIeTOm3uXXOPNNKZzvTfyh bj5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=x3dx+LHNno/HPbY+9YOb7yhthLTHe9r2ka6DGaSdvkE=; b=sjdajSeoyZgxgzu/D06w5jp8a0mvhS0jUW1tEht4jWrnEqFQusjvvHtWBCbt0z0EHt yEtvRNH2wW6cKYKZNP7ucDeqYcLs2fGWavKsioxPiEb/Mn16j4tSliHxe7zLr2u95D0m yvdYpTx7EqsnASpXFCODRl6C/grumVpr2FBiYzsb2oHBhfpw6AvLv94SHCrKeFuiNRWP tM5iFgFD1hOufQHlWxERktypPjBfom3Th0jvoRbDUhgnzhymIKMCpHX9jT8nRpSuoO2r TQ9pOdXTtSVQrnnNZgFjRgbkZ3/5pLINfBDjiF8hFzuNFpbyylfyDQxoMGk8SszoOQmJ 7Ppg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=n9B8OQSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020a1709066d4100b006e8884f5773si4527668ejt.377.2022.04.21.11.58.19; Thu, 21 Apr 2022 11:58:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=n9B8OQSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378597AbiDTN6P (ORCPT + 99 others); Wed, 20 Apr 2022 09:58:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353518AbiDTN6L (ORCPT ); Wed, 20 Apr 2022 09:58:11 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3379017A92 for ; Wed, 20 Apr 2022 06:55:24 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 0F6631F380; Wed, 20 Apr 2022 13:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1650462923; h=from:from:reply-to: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=x3dx+LHNno/HPbY+9YOb7yhthLTHe9r2ka6DGaSdvkE=; b=n9B8OQSsVDkUF7HNENIYWbDlBKWfxV9YnfA5lH3yfCNhmBZJMj7tj6Pkh4M3o8jWrrtXEE kv7ewxr+HE9FaHVEQtivRaTVf5hD30mXE0hcsKgFECsqS/2mrVvPYZo/3RjZCMlQ+bOkNB ECwR30eF7dqehWLoXz0myLVQeeHJFjk= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id C8A662C141; Wed, 20 Apr 2022 13:55:22 +0000 (UTC) Date: Wed, 20 Apr 2022 15:55:22 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v3 05/15] printk: wake waiters for safe and NMI contexts Message-ID: References: <20220419234637.357112-1-john.ogness@linutronix.de> <20220419234637.357112-6-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220419234637.357112-6-john.ogness@linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2022-04-20 01:52:27, John Ogness wrote: > When printk() is called from safe or NMI contexts, it will directly > store the record (vprintk_store()) and then defer the console output. > However, defer_console_output() only causes console printing and does > not wake any waiters of new records. > > Wake waiters from defer_console_output() so that they also are aware > of the new records from safe and NMI contexts. > > Fixes: 03fc7f9c99c1 ("printk/nmi: Prevent deadlock when accessing the main log buffer in NMI") > Signed-off-by: John Ogness Another great catch! Reviewed-by: Petr Mladek Best Regards, Petr