Merge branch 'mr_fix' into git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma...
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 28 May 2018 17:44:35 +0000 (11:44 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 May 2018 17:44:35 +0000 (11:44 -0600)
commit0394808d9ed5ca9d3595ca4d97ce79faf845ac77
treefd183abcc31abe5baeaaabf0b00e2671e4b11ad9
parentbb42f87e2924e3b118aed3b3790ce792ae7bb86c
parentd8f9cc328c8888369880e2527e9186d745f2bbf6
Merge branch 'mr_fix' into git://git./linux/kernel/git/rdma/rdma for-next

Update mlx4 to support user MR creation against read-only memory, previously
it required the memory to be writable.

Based on rdma for-rc due to dependencies.

* mr_fix: (2 commits)
  IB/mlx4: Mark user MR as writable if actual virtual memory is writable
  IB/core: Make testing MR flags for writability a static inline function
12 files changed:
drivers/infiniband/core/umem.c
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_hw.c
drivers/infiniband/hw/i40iw/i40iw_main.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/qedr/verbs.c
drivers/infiniband/sw/rxe/rxe_verbs.c
include/rdma/ib_verbs.h