]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Improve local kmem_cache_alloc performance
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Tue, 22 Aug 2017 01:26:45 +0000 (18:26 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Aug 2017 23:12:18 +0000 (19:12 -0400)
commit66e32a587c9a299bf7cc70c85e950d0a3d511c38
tree7279bc238b80cb372f3d6adf3b1d2cc09247d5b4
parentf8c9adb5dc9d9900e1fd927d78a6c559258dc949
IB/hfi1: Improve local kmem_cache_alloc performance

Performance analysis shows that the cache callback function
sdma_kmem_cache_ctor contributes to 1/2 of the kmem_cache_allocs
time.

Since all of the fields in the allocated data structure are initialized
in the code path, remove the _ctor function.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c
drivers/infiniband/hw/hfi1/verbs_txreq.c
drivers/infiniband/hw/hfi1/vnic_sdma.c