]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/mlx5: Use get_zeroed_page() for clock_info
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 16 Apr 2019 11:07:29 +0000 (14:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:16:30 +0000 (18:16 +0200)
commit8f6e34eb485259f913919c25443d58db759dfd2b
treefd541998aa07c8435b8beac88c7c0b582024cbda
parente0cfe523cf5bb94fbb022f471916e87865f5e321
RDMA/mlx5: Use get_zeroed_page() for clock_info

commit ddcdc368b1033e19fd3a5f750752e10e28a87826 upstream.

get_zeroed_page() returns a virtual address for the page which is better
than allocating a struct page and doing a permanent kmap on it.

Cc: stable@vger.kernel.org
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
include/linux/mlx5/driver.h