linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dylan Yudaken <dylany@fb.com>
To: "corbet@lwn.net" <corbet@lwn.net>,
	"akinobu.mita@gmail.com" <akinobu.mita@gmail.com>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH] docs: fault-injection: fix defaults
Date: Fri, 25 Mar 2022 20:59:08 +0000	[thread overview]
Message-ID: <4bf168db18fcba2a5e0391a2dc954be51c378109.camel@fb.com> (raw)
In-Reply-To: <87zgldesy8.fsf@meer.lwn.net>

On Fri, 2022-03-25 at 13:24 -0600, Jonathan Corbet wrote:
> Dylan Yudaken <dylany@fb.com> writes:
> 
> > ignore-gfp-wait and ignore-gfp-highmem defaults are actually true
> > (Y) in
> > both failslab and fail_page_alloc, not false as the docs suggest.
> > See
> > page_alloc.c:3762 and failslab.c:13
> > 
> > At the same time use 'Y' instead of '1' in the example scripts just
> > for
> > consistency. (though 1 would work)
> > 
> > Signed-off-by: Dylan Yudaken <dylany@fb.com>
> > ---
> >  Documentation/fault-injection/fault-injection.rst | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> > 
> > diff --git a/Documentation/fault-injection/fault-injection.rst
> > b/Documentation/fault-injection/fault-injection.rst
> > index 4a25c5eb6f07..8b4e1ce26d01 100644
> > --- a/Documentation/fault-injection/fault-injection.rst
> > +++ b/Documentation/fault-injection/fault-injection.rst
> > @@ -132,7 +132,7 @@ configuration of fault-injection capabilities.
> >  
> >         Format: { 'Y' | 'N' }
> >  
> > -       default is 'N', setting it to 'Y' won't inject failures
> > into
> > +       default is 'Y', setting it to 'Y' won't inject failures
> > into
> >         highmem/user allocations.
> 
> So the associated help text should perhaps have its sense changed too
> -
> what happens if you set it to "N"?  The help text would be more
> useful,
> IMO, if it read something like "set to 'N' if you want errors
> injected
> into GFP_HIGHUSER allocations" (or whatever GFP flags actually apply
> here). 
> 
> >  - /sys/kernel/debug/failslab/ignore-gfp-wait:
> > @@ -140,7 +140,7 @@ configuration of fault-injection capabilities.
> >  
> >         Format: { 'Y' | 'N' }
> >  
> > -       default is 'N', setting it to 'Y' will inject failures
> > +       default is 'Y', setting it to 'Y' will inject failures
> >         only into non-sleep allocations (GFP_ATOMIC allocations).
> 
> This is a little better in general, but still would be improved by
> telling the reader what they get if they change the default.

Makes sense. I'll submit v2 with that but it might be a couple weeks
when I get time (and I first have to understand what they actually get
when changing the default).

> 
> Thanks,
> 
> jon


      reply	other threads:[~2022-03-25 20:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-25 17:38 [PATCH] docs: fault-injection: fix defaults Dylan Yudaken
2022-03-25 19:24 ` Jonathan Corbet
2022-03-25 20:59   ` Dylan Yudaken [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bf168db18fcba2a5e0391a2dc954be51c378109.camel@fb.com \
    --to=dylany@fb.com \
    --cc=akinobu.mita@gmail.com \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).