On 10/28/24 02:08, Andrii Nakryiko wrote: > From: Suren Baghdasaryan <[email protected]> > > 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 <[email protected]> > Signed-off-by: Suren Baghdasaryan <[email protected]> > Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
