diff options
| author | Eric Dumazet <[email protected]> | 2020-07-30 01:57:55 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-07-31 17:12:30 +0000 |
| commit | 928da37a229f344424ffc89c9a58feb2368bb018 (patch) | |
| tree | d38b2349a494ef530af1599b89f19908a46a1138 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | RDMA/hns: Fix the unneeded process when getting a general type of CQE error (diff) | |
| download | kernel-928da37a229f344424ffc89c9a58feb2368bb018.tar.gz kernel-928da37a229f344424ffc89c9a58feb2368bb018.zip | |
RDMA/umem: Add a schedule point in ib_umem_get()
Mapping as little as 64GB can take more than 10 seconds, triggering issues
on kernels with CONFIG_PREEMPT_NONE=y.
ib_umem_get() already splits the work in 2MB units on x86_64, adding a
cond_resched() in the long-lasting loop is enough to solve the issue.
Note that sg_alloc_table() can still use more than 100 ms, which is also
problematic. This might be addressed later in ib_umem_add_sg_table(),
adding new blocks in sgl on demand.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
