Re: [patch 1/2] mm, counters: remove task argument to sync_mm_rssand __sync_task_rss_stat

From: Andrew Morton
Date: Wed Mar 07 2012 - 21:07:19 EST


On Wed, 7 Mar 2012 17:40:04 -0800 (PST) David Rientjes <rientjes@xxxxxxxxxx> wrote:

> On Wed, 7 Mar 2012, Andrew Morton wrote:
>
> > hm, with my gcc it's beneficial to cache `current' in a local. But
> > when I tried that, Weird Things happened, because gcc has gone and
> > decided to inline __sync_task_rss_stat() into its callers. I don't see
> > how that could have been the right thing to do.
> >
>
> c06b1fca18c3 offers some advice :)

But is it right? I handled a patch a month or two ago where caching
current made a nice improvement.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/