]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
IB/mlx5: Maintain a single emergency page
authorIlya Lesokhin <ilyal@mellanox.com>
Tue, 13 Mar 2018 13:18:48 +0000 (15:18 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Mar 2018 20:05:16 +0000 (16:05 -0400)
commitc44ef998f25eaddcd78924f98e5baed602d933e6
tree79399095abe3f6c9b272a0f93d39d22abb5f6603
parent65edd0e758b8a215825fb3ee685c8eaf6a9cc0d0
IB/mlx5: Maintain a single emergency page

The mlx5 driver needs to be able to issue invalidation to ODP MRs
even if it cannot allocate memory. To this end it preallocates
emergency pages to use when the situation arises.

This flow should be extremely rare enough, that we don't need
to worry about contention and therefore a single emergency page
is good enough.

Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c