diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2019-02-06 09:59:18 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-07 12:54:02 -0700 |
commit | 0e15c253363e9a8824e6b9c9fc17468eb924cebd (patch) | |
tree | e86afa16b5536b453bddf3a45f1e3b794d47a61b /drivers/infiniband/hw/usnic | |
parent | 3a2a1e90564e3ad215aa5c6ddc0e741cd6208a93 (diff) |
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 'drivers/infiniband/hw/usnic')
0 files changed, 0 insertions, 0 deletions