summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-16 11:51:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-16 13:51:23 +0300
commitf49fd9882f54a5c91d211f5f37432d50f4a1bb1c (patch)
treeb39c9eedc7538dda833480c1d2e609b0994859c1
parent0daa75bf750c400af0a0127fae37cd959d36dee7 (diff)
downloadlinux-f49fd9882f54a5c91d211f5f37432d50f4a1bb1c.tar.xz
Revert "posix-cpu-timers: Force next expiration recalc after itimer reset"
This reverts commit 13ccaef77ee86047033c50bf59cb19e0dda3aa97 which is commit 406dd42bd1ba0c01babf9cde169bb319e52f6147 upstream. It is reported to cause regressions. A proposed fix has been posted, but it is not in a released kernel yet. So just revert this from the stable release so that the bug is fixed. If it's really needed we can add it back in in a future release. Link: https://lore.kernel.org/r/87ilz1pwaq.fsf@wylie.me.uk Reported-by: "Alan J. Wylie" <alan@wylie.me.uk> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Frederic Weisbecker <frederic@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--kernel/time/posix-cpu-timers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c
index d3d42b7637a1..08c033b80256 100644
--- a/kernel/time/posix-cpu-timers.c
+++ b/kernel/time/posix-cpu-timers.c
@@ -1346,6 +1346,8 @@ void set_process_cpu_timer(struct task_struct *tsk, unsigned int clkid,
}
}
+ if (!*newval)
+ return;
*newval += now;
}