From: Jonathan Corbet <corbet@lwn.net>
To: Dylan Yudaken <dylany@fb.com>,
Akinobu Mita <akinobu.mita@gmail.com>,
linux-doc@vger.kernel.org
Cc: Dylan Yudaken <dylany@fb.com>
Subject: Re: [PATCH] docs: fault-injection: fix defaults
Date: Fri, 25 Mar 2022 13:24:31 -0600 [thread overview]
Message-ID: <87zgldesy8.fsf@meer.lwn.net> (raw)
In-Reply-To: <20220325173819.2255914-1-dylany@fb.com>
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.
Thanks,
jon
next prev parent reply other threads:[~2022-03-25 19:33 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 [this message]
2022-03-25 20:59 ` Dylan Yudaken
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=87zgldesy8.fsf@meer.lwn.net \
--to=corbet@lwn.net \
--cc=akinobu.mita@gmail.com \
--cc=dylany@fb.com \
--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).