]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e6ce1e226ed05d6593d73b618454a56ff611983
tree0dbc98e58b431bc35b5a4960d38b2174ff2106ec
parenta1e97fdebc6de4e0333d7b21a5fff1cbbe73ebaa
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