HFI1: use ihk_mc_pt_lookup_fault_pte() in SDMA/exp receive

This commit is contained in:
Balazs Gerofi
2018-04-25 16:16:38 +09:00
parent a3aa96af19
commit f7b277a623
2 changed files with 7 additions and 7 deletions

View File

@ -743,8 +743,8 @@ int hfi1_user_sdma_process_request(void *private_data, struct iovec *iovec,
* Store the physical address of the first page and
* the page size in iovec.
*/
ptep = ihk_mc_pt_lookup_pte(
cpu_local_var(current)->vm->address_space->page_table,
ptep = ihk_mc_pt_lookup_fault_pte(
cpu_local_var(current)->vm,
virt,
0,
0,
@ -1178,8 +1178,8 @@ static int user_sdma_send_pkts(struct user_sdma_request *req,
pte_t *ptep;
size_t base_pgsize;
ptep = ihk_mc_pt_lookup_pte(
cpu_local_var(current)->vm->address_space->page_table,
ptep = ihk_mc_pt_lookup_fault_pte(
cpu_local_var(current)->vm,
virt, 0, 0, &base_pgsize, 0);
if (unlikely(!ptep || !pte_is_present(ptep))) {
kprintf("%s: ERROR: no valid PTE for 0x%lx\n",