[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130813230352.GH28996@mtj.dyndns.org>
Date: Tue, 13 Aug 2013 19:03:52 -0400
From: Tejun Heo <tj@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Chris Metcalf <cmetcalf@...era.com>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, Thomas Gleixner <tglx@...utronix.de>,
Frederic Weisbecker <fweisbec@...il.com>,
Cody P Schafer <cody@...ux.vnet.ibm.com>
Subject: Re: [PATCH v4 2/2] mm: make lru_add_drain_all() selective
Hello, Andrew.
On Tue, Aug 13, 2013 at 03:47:40PM -0700, Andrew Morton wrote:
> > Well, I don't buy that either. Callback based interface has its
> > issues.
>
> No it hasn't. It's a common and simple technique which we all understand.
It sure has its uses but it has receded some of its former use cases
to better constructs which are easier to use and maintain. I'm not
saying it's black and white here as the thing is callback based anyway
but was trying to point out general disadvantages of callback based
interface. If you're saying callback based interface isn't clunkier
compared to constructs which can be embedded in the caller side, this
discussion probably won't be very fruitful.
> It's a relatively small improvement in the lru_add_drain_all() case.
> Other callsites can gain improvements as well.
Well, if we're talking about minute performance differences, for
non-huge configurations, it'll actually be a small performance
degradation as there will be more instructions and the control will be
jumping back and forth.
> It results in superior runtime code. At this and potentially other
> callsites.
It's actually inferior in majority of cases.
> It does buy us things, as I've repeatedly described. You keep on
> saying things which demonstrably aren't so. I think I'll give up now.
I just don't think it's something clear cut and it doesn't even matter
for the problem at hand. Let's please talk about how to solve the
actual problem.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists