[lkml]   [2017]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/5] mm subsystem refcounter conversions
Andrew Morton <> wrote:
> The performance implications of this proposal are terrifying.
> I suggest adding a set of non-debug inlined refcount functions which
> just fall back to the simple atomic.h operations.
> And add a new CONFIG_DEBUG_REFCOUNT. So the performance (and code
> size!) with CONFIG_DEBUG_REFCOUNT=n is unaltered from present code.
> And make CONFIG_DEBUG_REFCOUNT suitably difficult to set.

I agree. Refcounts are used in many performance-critical sites
within the network subsystem.

Email: Herbert Xu <>
Home Page:
PGP Key:

 \ /
  Last update: 2017-03-18 18:11    [W:0.057 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site