posix-timers: Make clock_nanosleep() time namespace aware
authorAndrei Vagin <avagin@openvz.org>
Tue, 12 Nov 2019 01:27:06 +0000 (01:27 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:55 +0000 (12:20 +0100)
commit1f9b37bfbb607a09d838c248843e63a2cafe1080
tree0dbc98e58b431bc35b5a4960d38b2174ff2106ec
parentea2d1f7fce0f18b67f915c00c6a7a6860116bc92
posix-timers: Make clock_nanosleep() time namespace aware

clock_nanosleep() accepts absolute values of expiration time, if the
TIMER_ABSTIME flag is set. This value is in the tasks time namespace,
which has to be converted to the host time namespace.

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-18-dima@arista.com
kernel/time/posix-stubs.c
kernel/time/posix-timers.c