Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5181883imm; Tue, 19 Jun 2018 06:28:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLCTlIGo2kR1XPfQ2e/IQKoz7kM6WCd5AWBwAtLZqCcq4hSzOTYOAAifG0j2+unAv35pc8H X-Received: by 2002:a17:902:c85:: with SMTP id 5-v6mr19013343plt.126.1529414911605; Tue, 19 Jun 2018 06:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529414911; cv=none; d=google.com; s=arc-20160816; b=ieZinOqA7CgGwfTNa4SWa65q2fmADDZdU92n/n7O0ifYHASl1B2emJRVcWzomxXM+d sluQ54MYQ4vDyY8brO9lBI0/y+lOx0U3sbNYxwx9yHNV2v+NhrzUady1PBj6JvYDesUO dxHmFYsmFFTXvbRzcy+Ylc9b5BlnK9g5NpAjpKdqc9C427kTPiUasCDCx/yEeIykjlfW lACXvk+RA4JoES+FK4lZClSih5p7kIKo9L/9YstKdI4hEnxbwGxnGT6xXGmAPfXVEiri 9dof7MMbrM4JX0QxpBu5M7bulag30ZSrhUVPtgry9N4biLC/tHUROSK+bXXN0pFZeP7n EZQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=vcy7xNe1trGY+fhnDsJky+jXjT/8dtOmcAkzF14Hhyo=; b=kd6sR/xezdVbFGxEDV/yzT96TpXWNuD43BNczM7Ea0zGZOG0QtC/rZsYfdNZ90D9kT HhaMyReaT5wZ9xyvc0OmFhaRP+zGia8hmjyHBjb/7xVLrMK2WcHy7JAaFGftBsCgKPhV Mwlp+TZ/Z12IQACB9VGvfLcf2vryaa9gouePNCYRA4unNILmLNFh26u38mzHZ7jdiZPN eqtsc3KzhkUm91h4zWKbAe2Rd6ZebmOZD54FOiCk/TF7oBSJ6bvRFZhqz8eUZaVfWR0k ejcKsHrErv+yWK4JOobJASV6vqMvXBVrg3mDpl6Ci4QB5Rq3aXnjt/eW+H35VsEkjOTH 23TQ== 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 q6-v6si17045450pls.21.2018.06.19.06.28.17; Tue, 19 Jun 2018 06:28:31 -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 S966426AbeFSN0e (ORCPT + 99 others); Tue, 19 Jun 2018 09:26:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:51322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966193AbeFSN0c (ORCPT ); Tue, 19 Jun 2018 09:26:32 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C49B62075E; Tue, 19 Jun 2018 13:26:30 +0000 (UTC) Date: Tue, 19 Jun 2018 09:26:29 -0400 From: Steven Rostedt To: Sergey Senozhatsky Cc: Petr Mladek , Maninder Singh , sergey.senozhatsky@gmail.com, linux-kernel@vger.kernel.org, a.sahrawat@samsung.com, pankaj.m@samsung.com, v.narang@samsung.com Subject: Re: [PATCH v2] printk: make sure to print log on console. Message-ID: <20180619092629.55146df7@gandalf.local.home> In-Reply-To: <20180619094953.GB2631@jagdpanzerIV> References: <20180601090029epcas5p3cc93d4bfbebb3199f0a2684058da7e26~z-a_jkmrI2993329933epcas5p3q@epcas5p3.samsung.com> <20180618061550.GA27996@jagdpanzerIV> <20180618062306.GA29683@jagdpanzerIV> <20180619093244.ehj34uhpnpv6447f@pathway.suse.cz> <20180619094953.GB2631@jagdpanzerIV> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Jun 2018 18:49:53 +0900 Sergey Senozhatsky wrote: > On (06/19/18 11:32), Petr Mladek wrote: > > > - if (suppress_message_printing(msg->level)) { > > > + if (!ignore_loglevel && (msg->flags & LOG_NOCONS)) { > > > > > > > > > `ignore_loglevel' is a module param and can change any time via > > > /sys/module/printk/parameters/ignore_loglevel > > > we need to respect its value. > > > > I would prefer to keep the patch as is. I see it the following way. > > > > Also console_loglevel can be changed anytime by /proc/sys/kernel/printk. > > The patch basically moves the decision about the message visibility from > > console_unlock() to vprintk_emit(). The logic is easier when all > > aspects are handled in a single location and only once. > > But when I set /sys/module/printk/parameters/ignore_loglevel I naturally > expect it to take an immediate action. Without waiting for the consoles > to catch up and to discard N messages [if the consoles were behind the > logbuf head]. > It's not that critical to have that change take immediate effect. It's not a common operation, and I doubt anyone (but perhaps you ;-) will even notice any difference. -- Steve