Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp463361imm; Thu, 31 May 2018 03:54:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLvuZ4s9AWkIGOj+BqV1Ze0DEnmXZSneTpTI8gGAE8em8iQi7C8z06ZNgkiwHV7O7dvMvLE X-Received: by 2002:a17:902:9a08:: with SMTP id v8-v6mr6487986plp.148.1527764041535; Thu, 31 May 2018 03:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527764041; cv=none; d=google.com; s=arc-20160816; b=vofV7HQGjnhekrcBTjswHiJh+gsmzwRqWuAPjHtwYR8xlNQ+6NYRyjKfD/z2kqlBBg NtqxeU1RqiR45OKYYZtyGHSeJ7TADZYfbGmBg2NambjZRNHsm/IdGopozDgGr/XquY3J C57mvZctTvzbWvCNLt1boKwm9eJEKSJhMYskBWeM98MD7HhaBcz32guICWmFmb9tBpFA NGNqj76d9WLdlfDPcoaO+ATZRVlHc0RBme9AbtRl1rI6fPqUrD9ycGt5kPjnCKAaORzK wTagL07pnT1nn+T+ELEjhWDyroU6P5SM4mZID3+RgitFHbQb2BFc+/+r/lIPwPtCwzTL 1Y1w== 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=t32YorTGl4asrb3KIZ2HPCVoMXVrwQzgPeQySltyiNs=; b=VKTgJ9C5QXNmfrIR8wwPcgtLPsq+zl+Jqk1JPzYLm7smVgQIhU/r4120mpYf1X/Q3Q DVQsYKmXqt0jNzAI4qfBT+LORapWz+jGb5vLvvUbFin0ZgggQ61NiE29m4qdB6kuX2UD 7b6nsU3HzNNT5kxI/yxTmH8caMEaUq48zT9em67txOYZllhM5FLKKXycXw972xBZl4l5 79mYFO3OuZxrBCJeuV+fJFbKdXRq2I5hsIPBqh/SzXdWGQ4hfOv3ib7qt6Vhc7hMqH4I nx2KXE5JtsjWxaBB9YPsLmsog+ag1H2WY+42kelsvUsDgtEjW57kOVbABM88YEQsHXfW /g7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CLEMlFxC; 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 w2-v6si29455013pgs.676.2018.05.31.03.53.47; Thu, 31 May 2018 03:54:01 -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=CLEMlFxC; 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 S1754582AbeEaKwV (ORCPT + 99 others); Thu, 31 May 2018 06:52:21 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:44410 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754464AbeEaKwU (ORCPT ); Thu, 31 May 2018 06:52:20 -0400 Received: by mail-pl0-f66.google.com with SMTP id z9-v6so9679955plk.11 for ; Thu, 31 May 2018 03:52:20 -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=t32YorTGl4asrb3KIZ2HPCVoMXVrwQzgPeQySltyiNs=; b=CLEMlFxCyjMrEGjmgOQE6V5tY3bbEahSpfJN9xp/PNS2UXTkeFYBQlKi0u00JkER4x lCyMTnSmdX2CWA0xe1DqLQbWKqbODd4B8DaLSm7GiEGTYYWyWMTGfX8ZWFYaQ2Z329GX CwIwMbzrPt7oh1wE6znyr7G8KSIn0MnGMtB8yfSOqiL2uJPMNz+eIsGUyXzICUH2E3sx 6yuT7xeWCiO3iREa9BTiY5LAKQy0JG7iHfjKEsfER3qjNzDJFhevp73bXRW59DArguFU oIQuLDq7nT971BBWi4jhNxj9zQN/At7mVFJQTrsahXVSPbhDdncDI2Vt1C6Gxtj70JGl ay/g== 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=t32YorTGl4asrb3KIZ2HPCVoMXVrwQzgPeQySltyiNs=; b=rCV+51HKfgdfStqeaO1xHitD38qSx+dNP9kMgCEObhI1sMMOPHP3OA2PpfxxAeOWki 2w3me9kL4XbD8BuoKSULUxv/iGrN1rDfuJS9yvlb0mY/5jGVQJeCQ69ZuvSHuZm/jQJz hKg07cCvUfPSKOK+2VNiWjwDr/eLks8RHOR1uB+4wTI7yFBWeRp+WAsiJIIRMWsYKgwt MlJdzwbBwriNYtGtAU/4ZxyWdnfgbtMJOq9LC63122rkKFIwGXTfSBWo1iMRetFJYemE T670VtdDNvMBOs5pwR7ANcsxNpKcgGLY6Jqn0tTiFargrIWeq+MSFK4T46dY5XWOU23j OPMw== X-Gm-Message-State: ALKqPwejsN0oeaVKIxSrW6NcDEgn33VsNJeUvxDfYkLU7R3vaDUUlcQs EHZYGXW6eE2ibfAke5df6L8= X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr6423227plo.166.1527763940457; Thu, 31 May 2018 03:52:20 -0700 (PDT) Received: from localhost ([39.7.47.247]) by smtp.gmail.com with ESMTPSA id t131-v6sm51671991pgc.34.2018.05.31.03.52.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 03:52:19 -0700 (PDT) Date: Thu, 31 May 2018 19:52:15 +0900 From: Sergey Senozhatsky To: Maninder Singh Cc: pmladek@suse.com, 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 2/2] printk: make sure to print log on console. Message-ID: <20180531105215.GF477@jagdpanzerIV> References: <20180531102246epcas5p2f1cbc6ff217172e12e2f78bb88eb4a7e~zs5h59tMh2250222502epcas5p2S@epcas5p2.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531102246epcas5p2f1cbc6ff217172e12e2f78bb88eb4a7e~zs5h59tMh2250222502epcas5p2S@epcas5p2.samsung.com> 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 (05/31/18 15:49), Maninder Singh wrote: > > This patch make sure printing of log if loglevel at time of storing > log is greater than current console loglevel. > > @why > In case of async printk, printk thread can miss logs because it checks > current log level at time of console_unlock. Upstream printk has no printing kthread. And we also run printk()->console_unlock() with disabled preemption. -ss