]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: introduce mmap_lock_speculate_{try_begin|retry}
authorSuren Baghdasaryan <surenb@google.com>
Fri, 22 Nov 2024 17:44:16 +0000 (09:44 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 2 Dec 2024 11:01:38 +0000 (12:01 +0100)
commit03a001b156d2da186a5618de242750d06bf81e2d
tree660b4233e154713e7d52178f4914bbaf7cbff826
parenteb449bd96954b1c1e491d19066cfd2a010f0aa47
mm: introduce mmap_lock_speculate_{try_begin|retry}

Add helper functions to speculatively perform operations without
read-locking mmap_lock, expecting that mmap_lock will not be
write-locked and mm is not modified from under us.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Link: https://lkml.kernel.org/r/20241122174416.1367052-3-surenb@google.com
include/linux/mmap_lock.h