Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3961792imm; Mon, 25 Jun 2018 07:30:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIuSaninXr5nDQQhhdm6h+yiFp/7TMN76d2RsQ36mAJ4/OFYwxDTYBAPwGnEMwbKQCuepm+ X-Received: by 2002:a63:a902:: with SMTP id u2-v6mr10829907pge.67.1529937012821; Mon, 25 Jun 2018 07:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937012; cv=none; d=google.com; s=arc-20160816; b=ohuQARfD8gfxf01MAtCbwdgfW5h1ORIKBubCdHk6AP5XImAbKRCguo2cW6wUNtnFk7 EVl0iVaP57/19SKni7ZYSkTIML8DgX9taAaYNWFiGcQExxRpBzylKkTIZwi7Yg7sqqVT cMtjCv5OBUGeHO7cVoYN+N+78h/5Vd1QMwAVGmW5aaUuSOXyqooUi/VxBa5Yvq86DvSs zQjKWrhyS8ExMND2gSqRhIgxFXbA8qlPNaZRS0dMg79BvVcSEUZ7eo6h0dYBa6Omi3g7 8586r+ot9pIJr84lkyrR/+bjMJHeoepRpDxlOLqJ5av5NSSaBtM0kGbA1cSm4jdXMfZ5 jBRA== 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:arc-authentication-results; bh=yjauzwl7by2smJZtcIXa0D5AXzxnWlsJYHvOBOTV+SU=; b=ZNvU9xOGF6PVAiJ+K6Y9iACLcgnz5pNZuKYbR4t+jw8CP6a3o5Hbjd1UJi2CY1y+4X Ut8ro4FW9xZORrFTPlzQw7blA1627Lzvly8PFFG3bscYBG/n7DhbONkOZK8DPwHGkdzx VJ/ZIcqfie6+sVtlZLg1SC91iwRVF7rje7grs+TiXJU4RtJz3ZhP5V49BA8QcPQ8lkJx uH0qpAr4fkhTTvSynWHPx3WmdqI1a87MfBzx6ePFrOKfbD3uk5qZL+UNLv4/zMBrhBGV Bkw9Xv9IRaQIqOKkOzO1BNyk5DkQhEmZT/uCIqlFy8UJUctgHLSYBCrr5eBn7M3/aNvv zVqQ== 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 p88-v6si14459928pfj.294.2018.06.25.07.29.57; Mon, 25 Jun 2018 07:30:12 -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 S934401AbeFYO2C (ORCPT + 99 others); Mon, 25 Jun 2018 10:28:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:58181 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934258AbeFYO2A (ORCPT ); Mon, 25 Jun 2018 10:28:00 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C9814AD69; Mon, 25 Jun 2018 14:27:59 +0000 (UTC) Date: Mon, 25 Jun 2018 16:27:58 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: 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: <20180625142758.ourdvfid3aymgvan@pathway.suse.cz> References: <20180601090029epcas5p3cc93d4bfbebb3199f0a2684058da7e26~z-a_jkmrI2993329933epcas5p3q@epcas5p3.samsung.com> <20180618061550.GA27996@jagdpanzerIV> <20180618062306.GA29683@jagdpanzerIV> <20180619093244.ehj34uhpnpv6447f@pathway.suse.cz> <20180619094953.GB2631@jagdpanzerIV> <20180619105213.uzf6ba3oo3475icz@pathway.suse.cz> <20180620015525.GC650@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180620015525.GC650@jagdpanzerIV> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2018-06-20 10:55:25, Sergey Senozhatsky wrote: > On (06/19/18 12:52), Petr Mladek wrote: > > > 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]. > > > > Yeah, I understand this view. I thought about it as well. But did you > > ever needed this behavior in the real life? > > > > I personally changed ignore_loglevel only before I wanted to reproduce a > > bug. Then it would be perfectly fine to handle it only in > > vprintk_emit(). In fact, it would be even better because it would > > affect only messages that happened after I triggered the bug. > > So maybe the patch can stand the way it is, after all. JFI, still haven't > seen those "helps in real life a lot" examples, tho. I have personally seen these races when testing printk in NMI. I combined iptables logging, ping -f and sysrq-l. I am not sure how often they happen in the real life but I could understand that it might be annoying. This patch goes in the right direction and nobody really blocks it. Therefore I pushed it into printk.git, branch for-4.19. Best Regards, Petr