Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6099414ybv; Wed, 12 Feb 2020 06:04:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyhBezfmrbhv4QFiExIXamU0fubIxnMJWbkxG6j2bIbdVLkuJr5OSSVg3XmDHzNwe7L0iBK X-Received: by 2002:a9d:6b06:: with SMTP id g6mr9361796otp.93.1581516278154; Wed, 12 Feb 2020 06:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581516278; cv=none; d=google.com; s=arc-20160816; b=YygXNMcuTWwKday/NYpVPll4ADT6Kc8gzyCCKPgMAm7knzLkUgDRVJyjwX/ovWCGmF Kx3Tt3G/gAO0C6i55n+sfdoM0i+JDsEiqcxj44VvvTzWD6idYw0Xu/DmOLP+lCPU4VZS cEdQ7oBBm7k4uOd7+iMhzsSZVZ9jSoVQqlqOdXPkT8WDPkfJE7zacYn3z4L/9h3ioYyZ 8wGURDxI0ebHCZdZiJShmO1e9f9x+ohowujPumDC+59t8B/NOZ0jMTbaH3X/jn3hbzX7 L8Smn2aKpow4NQ7bwmi3pdG3AIIzhh0tPBEz6E6nnMeDlgiP1/3jaXIdWRkeVyI2fusN cmBw== 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; bh=bSJIPHODsT83DKug8yU8Ews57uu3Ni8P+Lu+532w9GI=; b=QlCfTUEj/x8HC3Zvy4Y6bLQ2u+WRoKsAIRIoz7D4QU/cGtDCFTFjHdGfzf/QFpeXYH X0z+hDmqj5KPextDwNXKZ1HO+fP5uto/ri/VrfJD1mb1LjrCM3jWJDutlVklrNyoIrHl GsdqZv20MFyC4gm1uUuWs8ZMNF1ggY2kY4NtmCQpP55fibFyBp5FavlzXV5b5F0jYxAR Cb9yX2JX0VrOeDpPXeruVgFdb0J5WhuqDNehie1veyKt4VSpO8Nve0mXLV/WzKfPXYtk 6qf8vC807jfF9PNjm7Fi58ufNs3vZLrxREkI1PNaLt/p3nWxIPu89UjIzZi/exEOegza If4w== 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 y205si3574278oig.137.2020.02.12.06.04.23; Wed, 12 Feb 2020 06:04:38 -0800 (PST) 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 S1728126AbgBLOD6 (ORCPT + 99 others); Wed, 12 Feb 2020 09:03:58 -0500 Received: from mx2.suse.de ([195.135.220.15]:45354 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbgBLOD6 (ORCPT ); Wed, 12 Feb 2020 09:03:58 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DAE13B1A8; Wed, 12 Feb 2020 14:03:55 +0000 (UTC) Date: Wed, 12 Feb 2020 15:03:55 +0100 From: Petr Mladek To: Sergey Senozhatsky Cc: Andy Shevchenko , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Steven Rostedt , John Ogness Subject: Re: [PATCH v1] printk: Declare log_wait as external variable Message-ID: <20200212140355.56drih2wfcryjjtl@pathway.suse.cz> References: <20200203131528.52825-1-andriy.shevchenko@linux.intel.com> <20200211124317.x5erhl7kvxj2nq6a@pathway.suse.cz> <20200212013133.GB13208@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200212013133.GB13208@google.com> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2020-02-12 10:31:33, Sergey Senozhatsky wrote: > On (20/02/11 13:43), Petr Mladek wrote: > > > > Even better solution might be to move fs/proc/kmsg.c to > > kernel/printk/proc_kmsg.c and declare printk_log_wait only > > in kernel/printk/internal.h. I think that this is what > > Sergey suggested. > > Yes, right. > > > Another great thing would be to extract devkmsg stuff from > > kernel/printk/printk.c and put it into kernel/printk/dev_kmsg.c. > > Yeah, can do, I would still prefer proc_kmsg to "move in". > Either both can live in printk.c (won't make it much worse), > or in kernel/printk/dev_kmsg.c and kernel/printk/proc_kmsg.c I would prefer to split it: + printk.c is already too big and would deserve splitting. + The two different kmgs interfaces are confusing on its own. IMHO, it will be even more confusing when they live in one huge source file. > I can take a look at dev_ksmg.c/proc_kmsg.c option, unless > someone else wants to spend their time on this. It would be lovely from my POV. I am only concerned about the lockless printk() stuff. I would prefer to avoid creating too many conflicts in the same merge window. Well, I am not sure how many conflicts there would be. Adding John into CC. Best Regards, Petr