aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2019-02-06 09:59:17 -0800
committerJason Gunthorpe <[email protected]>2019-02-07 12:54:02 -0700
commit3a2a1e90564e3ad215aa5c6ddc0e741cd6208a93 (patch)
treee6abdb64e1af8e20a1a4204dca5f7f9388358c46 /tools/perf/scripts/python/export-to-postgresql.py
parent4f564ff3d4dd887955b25b83d06989610769bf32 (diff)
drivers/IB,qib: optimize mmap_sem usage
The driver uses mmap_sem for both pinned_vm accounting and get_user_pages(). Because rdma drivers might want to use gup_longterm() in the future we still need some sort of mmap_sem serialization (as opposed to removing it entirely by using gup_fast()). Now that pinned_vm is atomic the writer lock can therefore be converted to reader. This also fixes a bug that __qib_get_user_pages was not taking into account the current value of pinned_vm. Reviewed-by: Ira Weiny <[email protected]> Signed-off-by: Davidlohr Bueso <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions