Re: Problem with hrtimer_cancel() does not cancel timer
From: Alexander Gerasiov <hidden>
Date: 2017-02-28 13:10:31
From: Alexander Gerasiov <hidden>
Date: 2017-02-28 13:10:31
Hello Alexander, On Sat, 18 Feb 2017 01:15:22 +0300 Alexander Gerasiov [off-list ref] wrote:
Hello folks, I met some problem with preempt version of kernel 4.4. I have hrtimer which runs callback, it forwards time and returns HRTIMER_RESTART. Very common scheme. When I stop the routine I call hrtimer_cancel(). It should wait for callback completion if any and unqueue any future timers. But suddenly I noticed, that sometimes hrtimer's routine continue to work and work after hrtimer_cancel(). It could be reproduced with simple test:
So guys, did anybody reproduce this problem? If no, could you provide more info on your config? If yes, do anyone work on the problem or we need to deal with it ourselves? -- Best regards, Alexander Gerasiov Contacts: e-mail: gq@cs.msu.su Homepage: http://gerasiov.net Skype: gerasiov PGP fingerprint: 04B5 9D90 DF7C C2AB CD49 BAEA CA87 E9E8 2AAC 33F1