aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorLidong Chen <[email protected]>2018-05-08 16:50:16 +0800
committerJason Gunthorpe <[email protected]>2018-05-15 17:09:10 -0600
commit8e907ed4882714fd13cfe670681fc6cb5284c780 (patch)
tree5ce4bf10cbe8129f41020043768d3958eebb2eff /tools/perf/scripts/python/bin/export-to-postgresql-report
parent3d69191086fc87f202c79eb8873b9c82c2bb065a (diff)
IB/umem: Use the correct mm during ib_umem_release
User-space may invoke ibv_reg_mr and ibv_dereg_mr in different threads. If ibv_dereg_mr is called after the thread which invoked ibv_reg_mr has exited, get_pid_task will return NULL and ib_umem_release will not decrease mm->pinned_vm. Instead of using threads to locate the mm, use the overall tgid from the ib_ucontext struct instead. This matches the behavior of ODP and disassociate in handling the mm of the process that called ibv_reg_mr. Cc: <[email protected]> Fixes: 87773dd56d54 ("IB: ib_umem_release() should decrement mm->pinned_vm from ib_umem_get") Signed-off-by: Lidong Chen <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions