alarmtimer: Make nanosleep() time namespace aware
authorAndrei Vagin <avagin@gmail.com>
Tue, 12 Nov 2019 01:27:04 +0000 (01:27 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:55 +0000 (12:20 +0100)
commit0b9b9a3b162e85e620e3598f1badc45b8a177492
treee73af7a865a9d9c52991a419a8791605c31878e7
parent7da8b3a44bb426a43670b3a97ed61085018a9d43
alarmtimer: Make nanosleep() time namespace aware

clock_nanosleep() accepts absolute values of expiration time when the
TIMER_ABSTIME flag is set. This absolute value is inside the task's
time namespace and has to be converted to the host's time.

Co-developed-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20191112012724.250792-16-dima@arista.com
kernel/time/alarmtimer.c