]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a71a5a156d0ba6834d4410a0fe081439acdbe89
treedf2e5f6fbb0792262701818650a9d6f35f6b5151
parent76bb6f41ee687f188fb79b967be657bf3e0bb287
parent8f841387f6ffb580e64eafdd31d76fbf65b1fbda
Merge branch 'net-revert-lib-percpu_counter-API-for-fragmentation-mem-accounting'

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>