linux-stable/drivers/infiniband/hw
John Hubbard dfa0a4fff1 IB/{core,hw,umem}: set FOLL_PIN via pin_user_pages*(), fix up ODP
Convert infiniband to use the new pin_user_pages*() calls.

Also, revert earlier changes to Infiniband ODP that had it using
put_user_page().  ODP is "Case 3" in
Documentation/core-api/pin_user_pages.rst, which is to say, normal
get_user_pages() and put_page() is the API to use there.

The new pin_user_pages*() calls replace corresponding get_user_pages*()
calls, and set the FOLL_PIN flag.  The FOLL_PIN flag requires that the
caller must return the pages via put_user_page*() calls, but infiniband
was already doing that as part of an earlier commit.

Link: http://lkml.kernel.org/r/20200107224558.2362728-14-jhubbard@nvidia.com
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Björn Töpel <bjorn.topel@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Leon Romanovsky <leonro@mellanox.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-01-31 10:30:37 -08:00
..
bnxt_re Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
cxgb4 IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
efa IB/core: Introduce ib_reg_user_mr 2020-01-16 16:14:36 +02:00
hfi1 IB/{core,hw,umem}: set FOLL_PIN via pin_user_pages*(), fix up ODP 2020-01-31 10:30:37 -08:00
hns IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
i40iw IB/core: Introduce ib_reg_user_mr 2020-01-16 16:14:36 +02:00
mlx4 IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
mlx5 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
mthca IB/{core,hw,umem}: set FOLL_PIN via pin_user_pages*(), fix up ODP 2020-01-31 10:30:37 -08:00
ocrdma IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
qedr IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
qib IB/{core,hw,umem}: set FOLL_PIN via pin_user_pages*(), fix up ODP 2020-01-31 10:30:37 -08:00
usnic IB/{core,hw,umem}: set FOLL_PIN via pin_user_pages*(), fix up ODP 2020-01-31 10:30:37 -08:00
vmw_pvrdma IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00