Is the linux kernel's list.h thread safe?

kernel, linked-list, multithreading

Solution

No, the `list_head` struct doesn't contain any lock, and the operations are by no means atomic.

You can see so for yourself here, there is no mention of locking mechanisms etc.

Problem

Is the linux kernel's list.h thread safe?

Original source