From: Andrew Morton <akpm@linux-foundation.org>
To: Andi Kleen <andi@firstfloor.org>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>,
linux-mm@kvack.org, Andi Kleen <ak@linux.intel.com>
Subject: Re: [PATCH] mm, hwpoison: Add comment describing when to add new cases
Date: Tue, 21 Apr 2015 14:13:20 -0700 [thread overview]
Message-ID: <20150421141320.3ecb24f7679c2e874f9c056c@linux-foundation.org> (raw)
In-Reply-To: <1429639890-14116-1-git-send-email-andi@firstfloor.org>
On Tue, 21 Apr 2015 11:11:30 -0700 Andi Kleen <andi@firstfloor.org> wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> Here's another comment fix for hwpoison.
>
> It describes the "guiding principle" on when to add new
> memory error recovery code.
>
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
> mm/memory-failure.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/mm/memory-failure.c b/mm/memory-failure.c
> index 25c2054..d553993 100644
> --- a/mm/memory-failure.c
> +++ b/mm/memory-failure.c
> @@ -20,6 +20,13 @@
> * this code has to be extremely careful. Generally it tries to use
> * normal locking rules, as in get the standard locks, even if that means
> * the error handling takes potentially a long time.
> + *
> + * It can be very tempting to add handling for obscure cases here.
> + * In general any code for handling new cases should only be added if:
> + * - You know how to test it.
> + * - You have a test that can be added to mce-test
Some additional details on mce-test might be useful. The goog leads me
to https://github.com/andikleen/mce-test but that hasn't been touched
in 3 years?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2015-04-21 21:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 18:11 Andi Kleen
2015-04-21 21:13 ` Andrew Morton [this message]
2015-04-21 23:32 ` Andi Kleen
2015-04-21 23:29 ` Naoya Horiguchi
2015-04-21 23:35 Andi Kleen
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=20150421141320.3ecb24f7679c2e874f9c056c@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ak@linux.intel.com \
--cc=andi@firstfloor.org \
--cc=linux-mm@kvack.org \
--cc=n-horiguchi@ah.jp.nec.com \
/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