Skip to content
Snippets Groups Projects
user avatar
Davidlohr Bueso authored
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: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDavidlohr Bueso <dbueso@suse.det>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
0e15c253
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..