deleting timer that re-registers itself

Greg KH greg at kroah.com
Tue May 4 13:01:58 EDT 2021


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 :)




More information about the Kernelnewbies mailing list