diff options
author | Waiman Long <longman@redhat.com> | 2019-05-20 10:14:48 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-06-14 14:51:15 +0200 |
commit | d26bf5056fc087d845bfbb8b651b4be2933ab7a6 (patch) | |
tree | 6a07feea9b2a5f39b0376a32de2dce01424f7b16 /net/tipc/monitor.c | |
parent | 634d61f45d6f668fe7e468b62d00ae469a583ca2 (diff) | |
download | linux-d26bf5056fc087d845bfbb8b651b4be2933ab7a6.tar.bz2 |
debugobjects: Reduce number of pool_lock acquisitions in fill_pool()
In fill_pool(), the pool_lock is acquired and then released once per debug
object. If many objects are to be filled, the constant lock and unlock
operations are extra overhead.
To reduce the overhead, batch them up and do an allocation of 4 objects per
lock/unlock sequence.
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Yang Shi <yang.shi@linux.alibaba.com>
Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org>
Cc: Qian Cai <cai@gmx.us>
Cc: Zhong Jiang <zhongjiang@huawei.com>
Link: https://lkml.kernel.org/r/20190520141450.7575-4-longman@redhat.com
Diffstat (limited to 'net/tipc/monitor.c')
0 files changed, 0 insertions, 0 deletions