]> git.baikalelectronics.ru Git - kernel.git/commit
ib_srpt: use kvmalloc to allocate ring pointers
authorJan Dakinevich <jan.dakinevich@virtuozzo.com>
Mon, 9 Jul 2018 13:51:08 +0000 (16:51 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Jul 2018 17:13:05 +0000 (11:13 -0600)
commitb0b1d8ff5379f7dfc0b4d245987bcbda5f20cdb2
tree1aa0683c872bd40cc528bc21f4fdda253a3d6371
parent37ebc6476f2388111fb7634a12a6bb8d32e9d143
ib_srpt: use kvmalloc to allocate ring pointers

An array of pointers to SRPT contexts in ib_device is over 30KiB even
in default case, in which an amount of contexts is 4095. The patch
is intended to weed out large contigous allocation for non-DMA memory.

Signed-off-by: Jan Dakinevich <jan.dakinevich@virtuozzo.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/srpt/ib_srpt.c