Received: by 10.192.165.148 with SMTP id m20csp2273506imm; Thu, 26 Apr 2018 08:24:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ACg2KRdX0l2aQ5x1tinp06Xv+iz0qDSe9ENOziGZb1vmIXnAQx/1qGkhpIrGG73ajix1E X-Received: by 10.99.99.198 with SMTP id x189mr27503593pgb.371.1524756260678; Thu, 26 Apr 2018 08:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524756260; cv=none; d=google.com; s=arc-20160816; b=NDgYXdhMeUW43KO4NZhqYTOB2Hk0YXCaOyJy8OkbzWYO4xC5TM2vtp9rFLiHg7fRaE nYhnMoVCnqcLZE+M5gM40ghA9a9i3UQ3kl2h2u+3JFK00TnTa1R/v3+mlGIb7IjGXvXp GbipjtHn5UJXbnbTx2eul0A66yHOmQbQFFJT3RjNY/IFHjI20Hu4oJqeJjSpRw9aSs7O elZGLBvabzQkx7V1vshRPEujc0Bgi1aK0lgkVMz1+ho7qhLiEO1AEt/SueQZKVEC1UBs L0x5kJ+Z2/11ejKtOHJxAAgvAZvV2NzVYClS2t5vc11BZosAvVcRpTAtUXnoiQtevx9P iWIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=7HsStc0Xl646gy9STTqJf37xwdqpuK12S3RhjK8QsAo=; b=OJffDyaNiDIiQ91hHoVqc3mHVdhm7DJU08AnItLmKc5zXLearlgiduHaur3aqVODC4 MR9TWcZ4QPExk3S6HU8upw2znFqC4AG/5TIKaCAAxpwiyu4Q6dc5Pe2ha7EA3S4doELK 9keiar7a+dEMIJJN8btNfJgjlrFLo0lqDE2ol9Xsmwjx2ScfPXUI/SHJntTxwOakGotn Fp14/I0UYs9T5MX/h2rbA78NH29rCrFYIv9R8aLdaehk4cvoy+iqxO/s0WPvCv08qHUJ ZHznlI+Q6O3oAAJJxamLJ4zEFsb0XNJqwb5OpkVNmO75tCmK9rZQWby0C+ZMntfiFgc2 q/Lg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si16420416pgd.172.2018.04.26.08.24.06; Thu, 26 Apr 2018 08:24:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756728AbeDZPWu (ORCPT + 99 others); Thu, 26 Apr 2018 11:22:50 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57288 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756431AbeDZPWr (ORCPT ); Thu, 26 Apr 2018 11:22:47 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 69D6FEC01D; Thu, 26 Apr 2018 15:22:46 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 59B559457E; Thu, 26 Apr 2018 15:22:39 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w3QFMdas016329; Thu, 26 Apr 2018 11:22:39 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w3QFMdZW016325; Thu, 26 Apr 2018 11:22:39 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Thu, 26 Apr 2018 11:22:38 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: James Bottomley cc: David Rientjes , dm-devel@redhat.com, eric.dumazet@gmail.com, mst@redhat.com, netdev@vger.kernel.org, jasowang@redhat.com, Randy Dunlap , linux-kernel@vger.kernel.org, Matthew Wilcox , Michal Hocko , linux-mm@kvack.org, edumazet@google.com, Andrew Morton , virtualization@lists.linux-foundation.org, David Miller , Vlastimil Babka Subject: Re: [dm-devel] [PATCH v5] fault-injection: introduce kvmalloc fallback options In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="185206533-997862569-1524756159=:14894" X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 26 Apr 2018 15:22:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 26 Apr 2018 15:22:46 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpatocka@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --185206533-997862569-1524756159=:14894 Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Thu, 26 Apr 2018, Mikulas Patocka wrote: > > > On Wed, 25 Apr 2018, James Bottomley wrote: > > > > BTW. even developers who compile their own kernel should have this > > > enabled?by a CONFIG option - because if the developer sees the option > > > when?browsing through menuconfig, he may enable it. If he doesn't see > > > the?option, he won't even know that such an option exists. > > > > I may be an atypical developer but I'd rather have a root canal than > > browse through menuconfig options. The way to get people to learn > > about new debugging options is to blog about it (or write an lwn.net > > article) which google will find the next time I ask it how I debug XXX. > > Google (probably as a service to humanity) rarely turns up Kconfig > > options in response to a query. > > From my point of view, this feature should be as little disruptive to the > developer as possible. It should work automatically behind the scenes > without the developer or the tester even knowing that it is working. From > this point of view, binding it to CONFIG_DEBUG_SG (or any other commonly > used debugging option) would be ideal, because driver developers already > enable CONFIG_DEBUG_SG, so they'll get this kvmalloc test for free. > > From your point of view, you should introduce a sysfs file and a kernel > parameter that no one knows about - and then start blogging about it - to > let people know. Why would you bother people with this knowledge? They'll > forget about it anyway and won't turn it on. BTW. try to think about - how many total lines of code should this feature consume in the whole Linux ecosystem? I made a 10-line patch. I got pushback. I remade it to a 53-line patch. And you try to suggest that 53 lines is not enough and we must also change kernel packaging scripts in distro kernels, because the kernel just cannot enable this feature on its own. If we hack kernel packaging scripts in most distros, how many lines of code would that be? What's your target? Mikulas --185206533-997862569-1524756159=:14894--