aboutsummaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5/odp.c
diff options
context:
space:
mode:
authorGravatar Haggai Eran <haggaie@mellanox.com> 2014-12-11 17:04:22 +0200
committerGravatar Roland Dreier <roland@purestorage.com> 2014-12-15 18:19:02 -0800
commit832a6b06ab5e13c228fc27e333ad360aa03ace6f (patch)
treef47db1bab24137255c54f055b4bddbddff1fb7e4 /drivers/infiniband/hw/mlx5/odp.c
parentIB/mlx5: Changes in memory region creation to support on-demand paging (diff)
downloadlinux-832a6b06ab5e13c228fc27e333ad360aa03ace6f.tar.gz
linux-832a6b06ab5e13c228fc27e333ad360aa03ace6f.tar.bz2
linux-832a6b06ab5e13c228fc27e333ad360aa03ace6f.zip
IB/mlx5: Add mlx5_ib_update_mtt to update page tables after creation
The new function allows updating the page tables of a memory region after it was created. This can be used to handle page faults and page invalidations. Since mlx5_ib_update_mtt will need to work from within page invalidation, so it must not block on memory allocation. It employs an atomic memory allocation mechanism that is used as a fallback when kmalloc(GFP_ATOMIC) fails. In order to reuse code from mlx5_ib_populate_pas, the patch splits this function and add the needed parameters. Signed-off-by: Haggai Eran <haggaie@mellanox.com> Signed-off-by: Shachar Raindel <raindel@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/odp.c')
0 files changed, 0 insertions, 0 deletions