kernel - Fix statistics accounting bug in kfree()
commitb8b08456e04cfcd0fbd2666ce8434c6c8393c41d
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 23 Apr 2018 02:16:24 +0000 (22 19:16 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 23 Apr 2018 02:31:28 +0000 (22 19:31 -0700)
tree9deee99a8f7b1885635f80a51858235a17c572c7
parentcc705b823a33a247956d2a54a4e929a0ca2936d9
kernel - Fix statistics accounting bug in kfree()

* kfree() was bumping the statistics counters for the wrong cpu.
  This could lead to kmalloc statistics slowly becoming inaccurate.

* This also fixes some significant cache line bouncing under
  heavy threaded loaded.
sys/kern/kern_slaballoc.c