diff options
author | wangyugui <[email protected]> | 2021-10-19 08:26:56 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-10-20 19:56:42 -0300 |
commit | 911a81c9c7092bfd75432ce79b2ef879127ea065 (patch) | |
tree | 8d24e60f92993d09bf3767a81f4fe8cc2f028bbe /tools/perf/scripts/python | |
parent | dede33da0d97a423aae21b12c3bdd282b832853c (diff) |
RDMA/core: Use kvzalloc when allocating the struct ib_port
The 'struct attribute' flex array contains some struct lock_class_key's
which become big when lockdep is turned on. Big enough that some drivers
will not load when CONFIG_PROVE_LOCKING=y because they cannot allocate
enough memory:
WARNING: CPU: 36 PID: 8 at mm/page_alloc.c:5350 __alloc_pages+0x27e/0x3e0
Call Trace:
kmalloc_order+0x2a/0xb0
kmalloc_order_trace+0x19/0xf0
__kmalloc+0x231/0x270
ib_setup_port_attrs+0xd8/0x870 [ib_core]
ib_register_device+0x419/0x4e0 [ib_core]
bnxt_re_task+0x208/0x2d0 [bnxt_re]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: wangyugui <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions