lkml.org 
[lkml]   [2018]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [dm-devel] [PATCH v5] fault-injection: introduce kvmalloc fallback options


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
\
 
 \ /
  Last update: 2018-04-26 17:23    [W:0.201 / U:3.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site