On Tue, May 04, 2021 at 12:35:06PM -0400, Valdis Klētnieks wrote: > On Tue, 04 May 2021 12:17:56 -0400, "Valdis KlD tnieks" said: > > > void __exit timer_exit(void) { > > exiting = 1; > > -ENOCAFFEINE > > That still needs a few memory barriers. See Documentation/memory_barriers.txt > for the gory details. Use a real lock, it's much simpler :)