diff options
author | 2024-11-22 09:44:15 -0800 | |
---|---|---|
committer | 2024-12-02 12:01:38 +0100 | |
commit | eb449bd96954b1c1e491d19066cfd2a010f0aa47 (patch) | |
tree | 1fd8c4cad86a3f37e4989a70489051e3f34d1f21 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mm/gup: Use raw_seqcount_try_begin() (diff) | |
download | wireguard-linux-eb449bd96954b1c1e491d19066cfd2a010f0aa47.tar.xz wireguard-linux-eb449bd96954b1c1e491d19066cfd2a010f0aa47.zip |
mm: convert mm_lock_seq to a proper seqcount
Convert mm_lock_seq to be seqcount_t and change all mmap_write_lock
variants to increment it, in-line with the usual seqcount usage pattern.
This lets us check whether the mmap_lock is write-locked by checking
mm_lock_seq.sequence counter (odd=locked, even=unlocked). This will be
used when implementing mmap_lock speculation functions.
As a result vm_lock_seq is also change to be unsigned to match the type
of mm_lock_seq.sequence.
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-2-surenb@google.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions