mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-22 06:02:33 +00:00
DEBUG_TM_IGNORE_ALL workers share a freeze flag without synchronization. Manual review of the volatile warning confirmed that volatile does not protect these concurrent accesses. Store and snapshot the flag under the existing per-device mutex, then unlock before the intentional infinite sleep. The mutex is initialized before worker creation and destroyed after joins. Checkpatch reports VOLATILE: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst