linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Minchan Kim <minchan.kim@gmail.com>
To: David Rientjes <rientjes@google.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: Wed, 23 Nov 2011 15:41:11 +0900	[thread overview]
Message-ID: <20111123064111.GB25067@barrios-laptop.redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1111222230270.21009@chino.kir.corp.google.com>

On Tue, Nov 22, 2011 at 10:32:45PM -0800, David Rientjes wrote:
> 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().

printk_once is better in case of not serious WARNING
once I listen your opinion.

Reviewed-by: Minchan Kim <minchan.kim@gmail.com>

-- 
Kind regards,
Minchan Kim

--
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>

  reply	other threads:[~2011-11-23  6:41 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
2011-11-23  6:41     ` Minchan Kim [this message]
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=20111123064111.GB25067@barrios-laptop.redhat.com \
    --to=minchan.kim@gmail.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=rientjes@google.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