]> git.baikalelectronics.ru Git - kernel.git/commit
timerfd: Make timerfd_settime() time namespace aware
authorAndrei Vagin <avagin@gmail.com>
Tue, 12 Nov 2019 01:27:02 +0000 (01:27 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:53 +0000 (12:20 +0100)
commit87da4cbc304877b11dee3af2930d3a796c554877
tree74a3f0575c0f0a31eb7deaa1ec8723ed0ce9166c
parentb5d6c44afdacf453bee2ec6a85b819c8a9b2dade
timerfd: Make timerfd_settime() time namespace aware

timerfd_settime() accepts an absolute value of the expiration time if
TFD_TIMER_ABSTIME is specified. This value is in the task's time namespace
and has to be converted to the host's time namespace.

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