diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2018-01-25 22:27:27 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-01-26 18:43:46 +0300 |
commit | 487f6683f1b738e40aca2386b9f73da4ebb8223d (patch) | |
tree | a3d7ee5b94a0db12b991120ed446bf06d7b8adc3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | dc728f779a71769526531d3d8593ab4ab1d8e436 (diff) | |
download | linux-487f6683f1b738e40aca2386b9f73da4ebb8223d.tar.xz |
IB/mthca: Fix gup usage in mthca_map_user_db()
get_user_pages() must be called with mmap_sem held, currently
it is not. In fact it is called under the user db_table->mutex.
To fix this we can convert gup to use the fast alternative,
and safely avoid taking mmap_sem, if possible. Furthermore
this is safe wrt to the mutex as other callers that take the
lock (unmap and alloc_db) are not called under mmap_sem
(hence possible deadlock).
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions