Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2511810imu; Fri, 23 Nov 2018 10:14:20 -0800 (PST) X-Google-Smtp-Source: AJdET5dM9ieQfaGBaURIql/BgH9l8SvvcZ9SkKv9j6fWxvClyoegCTam8AhwdZeyT/FLzA9eI95B X-Received: by 2002:a62:160c:: with SMTP id 12-v6mr16970244pfw.45.1542996860174; Fri, 23 Nov 2018 10:14:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542996860; cv=none; d=google.com; s=arc-20160816; b=UimWS8ZcTFHK4PGXC0RwbskLSbSqZR9vKrse1hOqifO3TGOCwZhsxC6O0KS84Utn59 NjNIpJeHWoq+B0pOmJ3CosriewU8e2smKzLXsZqcCmdN5YU4qOLj8xNLapiBfXdKefas uC/XUJxLK2TzmDxa8DSQ2TYvAA8YnD9vCoBsGejRVPqFtOafI5G4laAG9bzFlT5fvjOM 67Ban0Z037szSJgPB+vIHXgH0x5y4revyNJgDZc8bSBEww+nvUl4Z/nbE/13dS5sebjl oTkD1S9TI12Vd1F8V6SCZhefsoOP15UwOQ/BxR0apcsdd3OJXg/uzkQYYuOfy6GeKt0K KKjQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=3tOM78ZxlEEn6KRAKaQo19xNd7M10ibFSzELfL/HJ+M=; b=WytlrbAQPwbQmfGlYUvtJjKtW/wpY1bjXBX8gQuwetjjqE0//Y1WT55SGhMg2cPsrb io7StE+hAB24FGFRs6GlbTypBcbwKUAc8IKqrsAsUTme1l8BXdwnSSAcLau5mT3Oeg+k PhNHQ/SiwJKbBZXzZiDHQh59D6AxnFpR6EhvOlsbtLjSKv5R66ZkdH6fp2cROH94DD9R 6ErrAUSUKdqw0L1qQ3wj2USCvQAV0rSynE7zG4621wQ6VPUButofv18TFFzTYK9qNOTA yy2yTXHScvbZn8OPTRNTGHPwlqjC5QIEUhh1eIxsCsSCTnQaogeS92BrMluDOXcfOS4B Mntg== 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 k72si50319508pge.310.2018.11.23.10.14.02; Fri, 23 Nov 2018 10:14:20 -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 S2395285AbeKWAi6 (ORCPT + 99 others); Thu, 22 Nov 2018 19:38:58 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:15135 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388851AbeKWAi5 (ORCPT ); Thu, 22 Nov 2018 19:38:57 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1C8A8722E3115; Thu, 22 Nov 2018 21:59:25 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.207) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 22 Nov 2018 21:59:21 +0800 Subject: Re: [PATCH 07/10] staging: erofs: separate into init_once / always To: Greg Kroah-Hartman CC: , , Miao Xie , , LKML References: <20181120143425.43637-1-gaoxiang25@huawei.com> <20181120143425.43637-8-gaoxiang25@huawei.com> <20181122102339.GG3189@kroah.com> <66b90226-5d0e-7344-5220-908aa243b014@huawei.com> <20181122110500.GC5287@kroah.com> <20181122112645.GA7527@kroah.com> <448b2d41-8156-3fe8-a037-29a31771721e@huawei.com> <20181122132311.GB14300@kroah.com> From: Gao Xiang Message-ID: <7a8ad8ce-1764-2baa-d9a3-e8bfae83d61a@huawei.com> Date: Thu, 22 Nov 2018 21:59:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20181122132311.GB14300@kroah.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.151.23.176] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On 2018/11/22 21:23, Greg Kroah-Hartman wrote: > On Thu, Nov 22, 2018 at 09:01:31PM +0800, Gao Xiang wrote: >> Hi Greg, >> >> On 2018/11/22 20:00, Gao Xiang wrote: >>> Hi Greg, >>> >>> On 2018/11/22 19:26, Greg Kroah-Hartman wrote: >>>> Don't make people rebuild your code with different options for >>>> debugging. That will never work in the 'real world' when people start >>>> using the code. You need to have things enabled for people all the >>>> time, which is why we have dynamic debugging in the kernel now, and not >>>> a zillion different "DRIVER_DEBUG" build options anymore. >>> Actually, current erofs handle differently for beta users (in eng mode) >>> and commercial users. >>> >>> CONFIG_EROFS_FS_DEBUG is enable for all beta users, after an observed >>> expression is false, we could get the whole memorydump as early as possible. >>> But for commercial users, there are no such observing points to promise >>> the kernel stability and performance. >>> >>> It has helped us to find several bug, and I cannot find some alternative way >>> to get the the first scene of the accident... >> >> I'm about to send v2 of this patchset... I need to get your opinion... >> >> I think for the current erofs development state, I tend to leave such a >> developping switch because the code could be modified frequently, >> many potential bugs could be avoid when this debugging mode is on and >> it will be dropped after erofs becomes more stable... > > You have two competing issues here. You need to have some sort of debug > build that allows you to get feedback from users, and you need to > provide a solid, reliable system for those not wanting to debug > anything. Yes, you are right :) > > If you use a kernel build option, then you can do what you are doing > now, just that do not expect for any user that has problems with the > filesystem, they will rebuild the code just to try to help debug it. > That is going to require run-time debugging to be enabled as they will > not usually have built their own kernel/module at all. Yes, actually the current Android system have 2 modes -- eng and commerical build for all versions. A large number of beta users will receive eng build, and many buges were observed from these users. That is the debugging benefit what Android system does now. I do not expect real users to rebuild kernels for debugging, I think after the Android use case, erofs has become solid enough. For commerical builds, it will have enough error handing case found by Android users and developers. > > For now, keep doing what you are doing, I just started to worry when I > saw the initial BUG_ON() as we had just talked about these at the > Maintainers summit a few weeks ago, and how we need to get rid of them > from the kernel as they are a crutch that we need to solve. Thanks for understanding... Thanks, Gao Xiang > > thanks, and sorry for the noise. Please resend this series again, > > greg k-h >