Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp952265pxb; Thu, 21 Apr 2022 14:23:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGgSQ3WRTAnuYJQYcHc0P6tnb8uIfqK4pHvkcZNy7/flsY9PmMDCx0/l7uRctAZTvka+Fu X-Received: by 2002:a65:4381:0:b0:3a2:ca0a:7ed8 with SMTP id m1-20020a654381000000b003a2ca0a7ed8mr1125038pgp.15.1650576220219; Thu, 21 Apr 2022 14:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650576220; cv=none; d=google.com; s=arc-20160816; b=sz9P6se73pwbvfqxWyfNY4VNwpBFox12kGP+DoiAVypRO1wdW8FVBiZlWpKhmYDzWo XN0VDrwO0zKvYQw3z8b0YGSCqEqzszIOFw4WjO0Ex2u5Zyqqpzi3hht6wiFofQOcvM9a 9AiqMu5diFAYweqFN+q6kCocQxa4ljA6OyKDDftzIwj4WdPAYy7wvwjaVF7I3Bf67EmU ZWmE//tAIlDGSaug/nbd5MNSl4zbYcoFyMW2fE+7nOGxH2hLY7SQjc+RyzqjCsS6uS2H V73Ok2njr/zZwq7ldIwZfUnei9V92ULCiS8yIDQUJVBRpi1UOafzt9dLc6i6mEM1tiU7 DT+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=5/ZHMq08ci045OAhMUJNVIZDxpbIlyVUYwdj4xaSdeg=; b=RZdso/r5om/R9MdKEOLiT14Vl9Zzxv/AidBF8ZV1iVV+R+P6iXB8Dw7BAlYx586TMW u4TMq/A0DqbueXhBuNMZF6eKOYPwnpygPMcCUcgBcKdETJ7lp/CQbIOY4m3Yww/jajRj gAfhop/6NRCJNBgqXuTxJ7K78HocoK5tmdpOZ1t7yDGLLwlCaNvyMg2Mvb1XrH+UoDCi LtZHhNU6RLY57/ECugH//i87SjWdIJFNst4+c6km/vpBJ/cT4nVuGwUG36QBX/LZ/DLb oCxRa7J5rXbTmo9uRCQT7t59zMJIQRCGWe27U2UG5UrIbr++5EYPE422eLlmnMCf2nPy CiPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WpAXvkiT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m15-20020a170902db0f00b00158dd22994dsi7035373plx.93.2022.04.21.14.23.23; Thu, 21 Apr 2022 14:23:40 -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=@linutronix.de header.s=2020 header.b=WpAXvkiT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358409AbiDSXti (ORCPT + 99 others); Tue, 19 Apr 2022 19:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358111AbiDSXt0 (ORCPT ); Tue, 19 Apr 2022 19:49:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BB642180E for ; Tue, 19 Apr 2022 16:46:42 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1650412000; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5/ZHMq08ci045OAhMUJNVIZDxpbIlyVUYwdj4xaSdeg=; b=WpAXvkiTSXZMQ674ogMxZp8afAb5ChX1Kg7FdIfOs3jmfimGNNplrJyaZVbUDssxL+Llpu NFH0vn5Tv7ZZlaq36y9Kuao1tIZtMHLGh4/vvbMupgZd8u2PpsT6Wa0anTM7qghlrFSqvg SQkuo7K+4jU8BbRSnRV5D7dLg670GRm4JtHccx2Ur3t0R5eHI8jbD2YfzvyOsTQxPElkVG Jz151GW69P4Q5mn8v7h6eKPItWLiVNLlEwZkc04sX4ne1RXDFJgHE1ZauFNQQTk6vdq2SE qCrOEWRwu2hBeJByyulk5zh9ESPXCcFBL41irHmp2/Cm+qnT+nnxa1iqrkz0sA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1650412000; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5/ZHMq08ci045OAhMUJNVIZDxpbIlyVUYwdj4xaSdeg=; b=LpNawu4c2DvFXQD+KxVeaDagebzQg2TbKfx8qN03VLnO+CTQwPZ3TYJukNK36Cva5r2Ajo IGS7p6nisZI1TMDg== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH printk v3 04/15] printk: wake up all waiters Date: Wed, 20 Apr 2022 01:52:26 +0206 Message-Id: <20220419234637.357112-5-john.ogness@linutronix.de> In-Reply-To: <20220419234637.357112-1-john.ogness@linutronix.de> References: <20220419234637.357112-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 There can be multiple tasks waiting for new records. They should all be woken. Use wake_up_interruptible_all() instead of wake_up_interruptible(). Signed-off-by: John Ogness --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index f817dfb4852d..e23357002648 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -3326,7 +3326,7 @@ static void wake_up_klogd_work_func(struct irq_work *irq_work) } if (pending & PRINTK_PENDING_WAKEUP) - wake_up_interruptible(&log_wait); + wake_up_interruptible_all(&log_wait); } static DEFINE_PER_CPU(struct irq_work, wake_up_klogd_work) = -- 2.30.2