diff options
| author | Davidlohr Bueso <dave@stgolabs.net> | 2019-02-06 20:59:18 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-07 22:54:02 +0300 |
| commit | 0e15c253363e9a8824e6b9c9fc17468eb924cebd (patch) | |
| tree | e86afa16b5536b453bddf3a45f1e3b794d47a61b /tools/perf/scripts/python | |
| parent | 3a2a1e90564e3ad215aa5c6ddc0e741cd6208a93 (diff) | |
| download | linux-0e15c253363e9a8824e6b9c9fc17468eb924cebd.tar.xz | |
drivers/IB,hfi1: do not se mmap_sem
This driver already uses gup_fast() and thus we can just drop the mmap_sem
protection around the pinned_vm counter. Note that the window between when
hfi1_can_pin_pages() is called and the actual counter is incremented
remains the same as mmap_sem was _only_ used for when ->pinned_vm was
touched.
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Davidlohr Bueso <dbueso@suse.det>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
