diff options
| author | Israel Rukshin <israelr@nvidia.com> | 2025-11-24 08:49:20 +0200 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2025-12-04 14:46:16 -0800 |
| commit | ce234d838d3b0566bcbf3fd13b546f176564ca07 (patch) | |
| tree | ffa24668b6f841eec2f17190858a2ae4d0458200 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | b645d5a25d49a515026ec444f2ccb087fe9daa7f (diff) | |
nvmet-rdma: use kvcalloc for commands and responses arrays
Replace kcalloc with kvcalloc for allocation of the commands and
responses arrays. Each command structure is 272 bytes and each
response structure is 672 bytes. These arrays typically exceed a
single page, and grow much larger with high queue depths
(e.g., commands >2MB, responses >170KB)
kvcalloc automatically falls back to vmalloc for large or fragmented
allocations, improving reliability. In our case, this memory is not
aimed for DMA operations and could be safely allocated by kvcalloc.
Using virtually contiguous memory helps to avoid allocation failures
and out-of-memory conditions common with kcalloc on large pools.
Signed-off-by: Israel Rukshin <israelr@nvidia.com>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
