Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4966670imm; Tue, 19 Jun 2018 02:51:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIo13CmZ/pH+a4FP7YT2wRN/43aREfFkFtO/cnQTimyKZKy30Sxk1P6pL0k8qPszfnWexao X-Received: by 2002:a62:f206:: with SMTP id m6-v6mr17168097pfh.171.1529401897684; Tue, 19 Jun 2018 02:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529401897; cv=none; d=google.com; s=arc-20160816; b=Q/kwDgBSDNJeYERCm4Vt4oWY12+K5K684f5rGjQNbbiDYeYuTcvbErBtpoTQ1Bl2kh D5LLQM74amk1dfBzvr7c3mz1sUjRoE8g97jrAteeTP2Dj7wnHepPajTtt80xdZiOgxuY fGxijRU+RuSXskeqBFeojVkrt+XmAvUKN9lzGzlKzH6eLiGSQuJkSnWer72VYG1yVjez Algw5/65Nxdphvj/WXHholAwEG8772UG4HKhnUxEBzpqm6lFa7AdHFgg6G1up5cYMAtP D3dKsU0IXoOEqYw7F9lNtjgMVww/jRDJyK4VJsCwypbCQd5ccMHY2jIZ+NtUNcar0uFR Y5fA== 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:dkim-signature:arc-authentication-results; bh=XeP8Yff6u2ryRFqZaJWbC1JL7sv3cjnk1xacczHn6D0=; b=MDAZdBpZufhyq8fNNelhVlTSyc/uNrLmNQeh0/FJyo0JLEaJSpz1iSgE1i0s8WAVDF DUpxul240lVru1NM3DCprEB2Jfk7reVTFoCAIAJwAbeuMfCfX6lvNFLNWFU5lTyDIMZu LUPGNeusFaoKWLzPyGV8ycV0gbaDXMRY1XfBYSBuDjHbfiYA/pYaW/zpgZVQDRRWCU5M Mr13xHmGz88lVA7preSkzfXmOstGek9oJWHUQngGzcR7KLA+zAWCz8LsI0gWShJ43+n3 u5gzv9JIQTZNp6ZbvYn4R0RiFyLtVfPrCOQHnd9oL9tK1EVulHnj1aQDm5vTbcdE/1mP KikQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="iGmb4/bL"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15-v6si17567293pls.358.2018.06.19.02.51.24; Tue, 19 Jun 2018 02:51:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="iGmb4/bL"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756818AbeFSJuA (ORCPT + 99 others); Tue, 19 Jun 2018 05:50:00 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:42605 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755270AbeFSJt6 (ORCPT ); Tue, 19 Jun 2018 05:49:58 -0400 Received: by mail-pg0-f68.google.com with SMTP id c10-v6so8922026pgu.9 for ; Tue, 19 Jun 2018 02:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XeP8Yff6u2ryRFqZaJWbC1JL7sv3cjnk1xacczHn6D0=; b=iGmb4/bLX2l/Tab3uK33i6ZHTOMLj9zWcJ5010llibm1i7ofQJAkuXJjTQn0Rrt1I2 Iphta7UcJ9m5XnZYeTWGTtIA0I3nng9hxrw4m/aVOxI09zUELJuI3UHJHda1rqbxfa4+ 3G2bJktjihhYjsvSpPsQyN8Lmq8tlLXLS1H1H9Yx8JyLG7dds19JFdeuRyoLCEHGvgwH xycWFZ9+mN+m+pPBrMOkrwWAtVk09a9ak0Cv3sMVD0YVFneDdYGfeQfs4MKM3mK7S7K4 pVIG2aaEByHhr4A9JUPZrT1EfSI7ZaAPQn/6zXTQMBZs2/lgQYCJXfQocGZwczBxOe3s 00GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XeP8Yff6u2ryRFqZaJWbC1JL7sv3cjnk1xacczHn6D0=; b=jrv9utq4JY+FsIXnCaqpc4PIfI35vpsHdKL9GZYK0hue5cgxRtfor8X5ZG2fBAy48q F2fI2jMwq8aED3hS+sQVPNMzTVs6XW5InhWeHXKb1KJTFdMEpMX5nuBnwHUQ5DLJMqAc MJTUuvqWqUeShFuuPno8jhnFEO2s4UWpLwfQEEmGODk4e3e5Y1tHCvmvmOwHnVDIVgPO On88pgZUV3sGfcGoCdOzWvoxQ2giMlB0OQ/csA0cD244cmdg/GGnAqG48a9Y25YbGMHM rEGFVKYVpcEL3ZX6HOzK90Bayne8LiHf+1UNlOiGxaufcCPAbUJTGhjPPsNsNqZZvIV5 O2Zg== X-Gm-Message-State: APt69E1RFo4lz4ONQZwb8PAh0wF2+ly47CJ2Z+0sRXAQNG/YwxrIEhQc iWh5U1lDE7IgMrBgaNtpVHppeslq X-Received: by 2002:a65:48c9:: with SMTP id o9-v6mr14439562pgs.262.1529401798397; Tue, 19 Jun 2018 02:49:58 -0700 (PDT) Received: from localhost ([175.223.26.106]) by smtp.gmail.com with ESMTPSA id o87-v6sm32253890pfa.106.2018.06.19.02.49.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 02:49:57 -0700 (PDT) Date: Tue, 19 Jun 2018 18:49:53 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Maninder Singh , sergey.senozhatsky@gmail.com, rostedt@goodmis.org, 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: <20180619094953.GB2631@jagdpanzerIV> References: <20180601090029epcas5p3cc93d4bfbebb3199f0a2684058da7e26~z-a_jkmrI2993329933epcas5p3q@epcas5p3.samsung.com> <20180618061550.GA27996@jagdpanzerIV> <20180618062306.GA29683@jagdpanzerIV> <20180619093244.ehj34uhpnpv6447f@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619093244.ehj34uhpnpv6447f@pathway.suse.cz> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]. -ss