OSDN Git Service

Merge branch 'net-revert-lib-percpu_counter-API-for-fragmentation-mem-accounting'
authorDavid S. Miller <davem@davemloft.net>
Sun, 3 Sep 2017 18:01:05 +0000 (11:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Sep 2017 18:01:05 +0000 (11:01 -0700)
Jesper Dangaard Brouer says:

====================
net: revert lib/percpu_counter API for fragmentation mem accounting

There is a bug in fragmentation codes use of the percpu_counter API,
that can cause issues on systems with many CPUs, above 24 CPUs.

After much consideration and different attempts at solving the API
usage.  The conclusion is to revert to the simple atomic_t API instead.

The ratio between batch size and threshold size make it a bad use-case
for the lib/percpu_counter API.  As using the correct API calls will
unfortunately cause systems with many CPUs to always execute an
expensive sum across all CPUs. Plus the added complexity is not worth it.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge