]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: mmu/fmr: Fix check for page table reusability
authorKnut Omang <knut.omang@oracle.com>
Mon, 8 Aug 2016 04:43:04 +0000 (06:43 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 12 Aug 2016 19:18:10 +0000 (12:18 -0700)
commite9c650e30d8b1c0d56066284bb375c56f0120de2
tree839f62f47ad4ed4fe472514d5ccad2fc93e743e8
parentccf2af6c1f7e414290ca5486e7e9514514af6c7d
sif: mmu/fmr: Fix check for page table reusability

The FMR mapping logic attempts to reuse the page table if memory layout is
sufficiently similar. Currently this optimization is for simplicity
limited to very similar memory layouts and does not handle changes
in the page table level (base page size).

The test for this only considered page sizes going from small to larger
and not the opposite.

This scenario is triggered by NFSoRDMA if the previous use was in
huge page mappable memory and the current use is in more
fragmented memory.

Orabug: 21835309

Signed-off-by: Knut Omang <knut.omang@oracle.com>
drivers/infiniband/hw/sif/sif_mmu.c