commit | 4f564ff3d4dd887955b25b83d06989610769bf32 | [log] [tgz] |
---|---|---|
author | Davidlohr Bueso <dave@stgolabs.net> | Wed Feb 06 09:59:16 2019 -0800 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Thu Feb 07 12:54:02 2019 -0700 |
tree | 679b0c3bf19ebb6cebaf03f10ab8f103bfab0366 | |
parent | 70f8a3ca68d3e1f3344d959981ca55d5f6ec77f7 [diff] |
drivers/mic/scif: do not use mmap_sem The driver uses mmap_sem for both pinned_vm accounting and get_user_pages(). By using gup_fast() and letting the mm handle the lock if needed, we can no longer rely on the semaphore and simplify the whole thing. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>