diff options
author | 2020-04-10 14:32:51 -0700 | |
---|---|---|
committer | 2020-04-10 15:36:21 -0700 | |
commit | 8efd6f5b1732c4ac88b4bb6908d481d95804fa1c (patch) | |
tree | c5f087f6ee4a21684daae1ed568b0d6aed887b52 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | mm/mmap.c: initialize align_offset explicitly for vm_unmapped_area (diff) | |
download | wireguard-linux-8efd6f5b1732c4ac88b4bb6908d481d95804fa1c.tar.xz wireguard-linux-8efd6f5b1732c4ac88b4bb6908d481d95804fa1c.zip |
mm/memory.c: refactor insert_page to prepare for batched-lock insert
Add helper methods for vm_insert_page()/insert_page() to prepare for
vm_insert_pages(), which batch-inserts pages to reduce spinlock
operations when inserting multiple consecutive pages into the user page
table.
The intention of this patch-set is to reduce atomic ops for tcp zerocopy
receives, which normally hits the same spinlock multiple times
consecutively.
Signed-off-by: Arjun Roy <arjunroy@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: David Miller <davem@davemloft.net>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Link: http://lkml.kernel.org/r/20200128025958.43490-1-arjunroy.kdev@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions