Mateusz, just out of curiosity, have you tried to explore alternative spinlock implementations like a ticket lock? It would be interesting to see if there are any improvements to be gained there. -- Andriy Gapon