linux_dsm_epyc7002/drivers/infiniband/hw
Davidlohr Bueso 3a2a1e9056 drivers/IB,qib: optimize mmap_sem usage
The driver uses mmap_sem for both pinned_vm accounting and
get_user_pages(). Because rdma drivers might want to use gup_longterm() in
the future we still need some sort of mmap_sem serialization (as opposed
to removing it entirely by using gup_fast()). Now that pinned_vm is atomic
the writer lock can therefore be converted to reader.

This also fixes a bug that __qib_get_user_pages was not taking into
account the current value of pinned_vm.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-02-07 12:54:02 -07:00
..
bnxt_re RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
cxgb3 iw_cxgb*: kzalloc the iwcm verbs struct 2019-02-04 16:26:02 -07:00
cxgb4 iw_cxgb*: kzalloc the iwcm verbs struct 2019-02-04 16:26:02 -07:00
hfi1 mm: make mm->pinned_vm an atomic64 counter 2019-02-07 12:54:02 -07:00
hns RDMA/hns: Fix the chip hanging caused by sending doorbell during reset 2019-02-04 16:13:50 -07:00
i40iw RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
mlx4 Linux 5.0-rc5 2019-02-04 14:53:42 -07:00
mlx5 IB/mlx5: Do not use hw_access_flags for be and CPU data 2019-02-05 15:22:45 -07:00
mthca Linux 5.0-rc5 2019-02-04 14:53:42 -07:00
nes RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
ocrdma RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
qedr RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
qib drivers/IB,qib: optimize mmap_sem usage 2019-02-07 12:54:02 -07:00
usnic mm: make mm->pinned_vm an atomic64 counter 2019-02-07 12:54:02 -07:00
vmw_pvrdma Linux 5.0-rc5 2019-02-04 14:53:42 -07:00
Makefile