hrtimer: Fix hrtimer_is_queued() hole
hrtimer: Fix hrtimer_is_queued() hole

A queued hrtimer that gets restarted (hrtimer_start*() while
hrtimer_is_queued()) will briefly appear as unqueued/inactive, even
though the timer has always been active, we just moved it.

Close this hole by preserving timer->state in
hrtimer_start_range_ns()'s remove_hrtimer() call.

Reported-by: Oleg Nesterov <20b70f0af00562e63758b9ee42012ecc96c58590@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <3fddac958924aef220f202ca567388ddab3f14a8@infradead.org>
Cc: e5b39230c99b4d3ebd6aa54f6d823f95134bc39d@parallels.com
Cc: 43232e92d70cc7aa53504ad0397085ee47bad87f@goodmis.org
Cc: bdc6bcd4e8b34b4b92413d758024aeca6da0e459@gmail.com
Cc: 8f3df7547938bf466547d5e4573831d5224028fc@linaro.org
Cc: bdcdf23be75b976d8e1ad9f82e6b264941889f50@linux.intel.com
Cc: d1e2fad1f6337a0a3a08db0a5375a8a96150db4c@gmail.com
Link: 33f8381877d92f2cbd55fd8d38073df7dda7084e@infradead.org
Signed-off-by: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs