]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/mlx5: Use the original address for the page during free_pages
authorDanit Goldberg <danitg@mellanox.com>
Mon, 16 Sep 2019 06:48:17 +0000 (09:48 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 16 Sep 2019 16:39:56 +0000 (13:39 -0300)
commit130c2c576e75efaea9cd321ec4b171cc93cd0030
treea7f3e40f8f15ba57679b5daaf8a62c421767e343
parentd97a3e92f33685768be04b2dfcd812f78f8ef341
IB/mlx5: Use the original address for the page during free_pages

The removal of 'buffer' in the patch below caused free_page() to use a
value that had been offset since the wqe pointer is adjusted while the
routine runs.

The current implementation of free_pages() rounds down to a pfn,
discarding the adjustment, but this is not the right way to use the
API. Preserve the initial value and use it for free_page().

Fixes: 0f51427bd097 ("RDMA/mlx5: Cleanup WQE page fault handler")
Link: https://lore.kernel.org/r/20190916064818.19823-2-leon@kernel.org
Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c