diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2018-03-28 12:29:26 +0200 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2018-07-26 06:48:41 +0200 |
commit | 7b5dbbf0ca093bc8dca1ae669524aac0fd2ca563 (patch) | |
tree | 32e0ed3427cbe59a7827745a02e608029eb83d5f /include/linux/seqno-fence.h | |
parent | a9c964ace7a4866361a3fea6c90c07c9eef515bd (diff) | |
download | linux-rt-7b5dbbf0ca093bc8dca1ae669524aac0fd2ca563.tar.gz |
posix-timers: move the rcu head out of the union
On RT the timer can be preempted while running and therefore we wait
with timer_wait_for_callback() for the timer to complete (instead of
busy looping). The RCU-readlock is held to ensure that this posix timer
is not removed while we wait on it.
If the timer is removed then it invokes call_rcu() with a pointer that
is shared with the hrtimer because it is part of the same union.
In order to avoid any possible side effects I am moving the rcu pointer
out of the union.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Daniel Wagner <wagi@monom.org>
Diffstat (limited to 'include/linux/seqno-fence.h')
0 files changed, 0 insertions, 0 deletions