aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-05-26 18:33:02 +0100
committerDavid S. Miller <davem@davemloft.net>2020-06-02 18:45:51 -0700
commit1996d47a0db27a3071f1a6587123185ba98c4585 (patch)
tree3b849e4c43873e8fc1fead51e5531bcb2d0d2b19 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentsparc32: mm: Disable SPLIT_PTLOCK_CPUS (diff)
downloadwireguard-linux-1996d47a0db27a3071f1a6587123185ba98c4585.tar.xz
wireguard-linux-1996d47a0db27a3071f1a6587123185ba98c4585.zip
sparc32: mm: Only call ctor()/dtor() functions for first and last user
The SRMMU page-table allocator allocates multiple PTE tables per page, since they are only 1K in size. However, this means that calls to pgtable_pte_page_{ctor,dtor}() must be serialised and performed only by the first and last page-table allocation for the page respectively. Use the page reference count to track how many PTE tables we have allocated for a given page returned by the SRMMU allocator and only call the ctor()/dtor() functions for the first and last user respectively. Cc: David S. Miller <davem@davemloft.net> Fixes: 8c8f3156dd40 ("sparc32: mm: Reduce allocation size for PMD and PTE tables") Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions