From: David Rientjes <rientjes@google.com>
To: Minchan Kim <minchan.kim@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Mel Gorman <mgorman@suse.de>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Johannes Weiner <jweiner@redhat.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vmscan: add task name to warn_scan_unevictable() messages
Date: Tue, 22 Nov 2011 22:32:45 -0800 (PST) [thread overview]
Message-ID: <alpine.DEB.2.00.1111222230270.21009@chino.kir.corp.google.com> (raw)
In-Reply-To: <20111123062405.GA25067@barrios-laptop.redhat.com>
On Wed, 23 Nov 2011, Minchan Kim wrote:
> > diff --git a/mm/vmscan.c b/mm/vmscan.c
> > index a1893c0..29d163e 100644
> > --- a/mm/vmscan.c
> > +++ b/mm/vmscan.c
> > @@ -3448,9 +3448,10 @@ void scan_mapping_unevictable_pages(struct address_space *mapping)
> > static void warn_scan_unevictable_pages(void)
> > {
> > printk_once(KERN_WARNING
> > - "The scan_unevictable_pages sysctl/node-interface has been "
> > + "%s: The scan_unevictable_pages sysctl/node-interface has been "
> > "disabled for lack of a legitimate use case. If you have "
> > - "one, please send an email to linux-mm@kvack.org.\n");
> > + "one, please send an email to linux-mm@kvack.org.\n",
> > + current->comm);
> > }
>
> Just nitpick:
> How about using WARN_ONCE instead of custom warning?
> It can show more exact call path as well as comm.
> I guess it's more noticible to users.
> Anyway, either is okay to me.
>
When I used WARN_ONCE() to notify users that /proc/pid/oom_adj was
deprecated, people complained that it triggered userspace log parsers
thinking that there's a serious problem and it adds a taint flag so it got
reverted. I'd recommend keeping it printk_once().
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-11-23 6:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 5:55 KOSAKI Motohiro
2011-11-23 6:24 ` Minchan Kim
2011-11-23 6:32 ` David Rientjes [this message]
2011-11-23 6:41 ` Minchan Kim
2011-11-23 7:34 ` Johannes Weiner
2011-11-23 8:03 ` KAMEZAWA Hiroyuki
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=alpine.DEB.2.00.1111222230270.21009@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=jweiner@redhat.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=minchan.kim@gmail.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