Re: git: 133935d26f20 - main - pf: atomically increment state ids

From: Gleb Smirnoff <>
Date: Sat, 08 Oct 2022 22:26:04 UTC
On Sat, Oct 08, 2022 at 04:41:29PM +0000, Kristof Provost wrote:
K> commit 133935d26f20c0b9c433da9a2b32bcbe562bc2c5
K> Author:     Kristof Provost <>
K> AuthorDate: 2022-10-07 17:17:06 +0000
K> Commit:     Kristof Provost <>
K> CommitDate: 2022-10-08 16:27:29 +0000
K>     pf: atomically increment state ids
K>     Rather than using a per-cpu state counter, and adding in the CPU id we
K>     can atomically increment the number.
K>     This has the advantage of removing the assumption that the CPU ID fits
K>     in 8 bits.
K>     Event:          Aberdeen Hackathon 2022
K>     Reviewed by:    mjg
K>     Differential Revision:

This adds an atomic operation on a single word on a state creation :(
Previously two state creations could run in parallel without negatively
affecting each other.

Gleb Smirnoff