OpenVZ Forum


Home » Mailing lists » Devel » [PATCH v6 0/2] fix static_key disabling problem in memcg
Re: [PATCH v6 2/2] decrement static keys on real destroy time [message #46492 is a reply to message #46488] Wed, 23 May 2012 20:33 Go to previous message
akpm is currently offline  akpm
Messages: 224
Registered: March 2007
Senior Member
On Wed, 23 May 2012 13:16:36 +0400
Glauber Costa <glommer@parallels.com> wrote:

> On 05/23/2012 02:46 AM, Andrew Morton wrote:
> > Here, we're open-coding kinda-test_bit(). Why do that? These flags are
> > modified with set_bit() and friends, so we should read them with the
> > matching test_bit()?
>
> My reasoning was to be as cheap as possible, as you noted yourself two
> paragraphs below.

These aren't on any fast path, are they?

Plus: you failed in that objective! The C compiler's internal
scalar->bool conversion makes these functions no more efficient than
test_bit().

> > So here are suggested changes from*some* of the above discussion.
> > Please consider, incorporate, retest and send us a v7?
>
> How do you want me to do it? Should I add your patch ontop of mine,
> and then another one that tweaks whatever else is left, or should I just
> merge those changes into the patches I have?

A brand new patch, I guess. I can sort out the what-did-he-change view
at this end.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] NFS: init client before declaration
Next Topic: [PATCH] NFSd: set nfsd_serv to NULL after service destruction
Goto Forum:
  


Current Time: Fri Oct 10 21:32:39 GMT 2025

Total time taken to generate the page: 0.09749 seconds