]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA: Remove rdma_user_mmap_page
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 16 Apr 2019 11:07:30 +0000 (14:07 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 24 Apr 2019 19:18:36 +0000 (16:18 -0300)
commite9aa2dcc3a6f04bacb31bf7ecbbc7b63513f3ff5
tree5fb41606bcef3c4553cbc8a66d292f147fa6daaf
parentfd0096b132ec1dcce28a4dbe5416865ba669211a
RDMA: Remove rdma_user_mmap_page

Upon further research drivers that want this should simply call the core
function vm_insert_page(). The VMA holds a reference on the page and it
will be automatically freed when the last reference drops. No need for
disassociate to sequence the cleanup.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/hw/mlx5/main.c
include/rdma/ib_verbs.h