diff options
author | Suren Baghdasaryan <surenb@google.com> | 2024-11-22 20:44:15 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-12-02 14:01:38 +0300 |
commit | eb449bd96954b1c1e491d19066cfd2a010f0aa47 (patch) | |
tree | 1fd8c4cad86a3f37e4989a70489051e3f34d1f21 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7528585290a1a1d4e0fb4b72261eb2d8c85de2d7 (diff) | |
download | linux-eb449bd96954b1c1e491d19066cfd2a010f0aa47.tar.xz |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions