aboutsummaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorYang Shi <yang.shi@linux.alibaba.com>2018-02-06 07:18:27 +0800
committerThomas Gleixner <tglx@linutronix.de>2018-02-13 10:58:59 +0100
commit636e1970fd7deaa0d0ee0dfb6ac65fbd690b32d2 (patch)
tree4cec59377bf77600013af40888433dcb57716722 /usr
parent36c4ead6f6dfbbe777d3d7e9cc8702530b71a94f (diff)
debugobjects: Use global free list in free_object()
The newly added global free list allows to avoid lengthy pool_list iterations in free_obj_work() by putting objects either into the pool list when the fill level of the pool is below the maximum or by putting them on the global free list immediately. As the pool is now guaranteed to never exceed the maximum fill level this allows to remove the batch removal from pool list in free_obj_work(). Split free_object() into two parts, so the actual queueing function can be reused without invoking schedule_work() on every invocation. [ tglx: Remove the batch removal from pool list and massage changelog ] Suggested-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: longman@redhat.com Link: https://lkml.kernel.org/r/1517872708-24207-4-git-send-email-yang.shi@linux.alibaba.com
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions