Thread (24 messages) 24 messages, 6 authors, 2014-05-02

Re: BUG: spinlock trylock failure on UP, i.MX28 3.12.15-rt25

From: Thomas Gleixner <hidden>
Date: 2014-05-02 19:01:47
Also in: linux-arm-kernel, lkml

On Fri, 2 May 2014, Sebastian Andrzej Siewior wrote:
* Steven Rostedt | 2014-04-22 14:16:50 [-0400]:
quoted
/*
 * Called by the local, per-CPU timer interrupt on SMP.
 */
@@ -1467,7 +1473,7 @@ void run_local_timers(void)
		return;
	}

-	if (!spin_do_trylock(&base->lock)) {
+	if (timer_should_raise_softirq(&base->lock)) {
		raise_softirq(TIMER_SOFTIRQ);
		return;
	}
Okay. So Peter said that it is okay to apply this since FULL_NO_HZ users
wouldn't complain on UP. I still wouldn't say it is broken but that is a
different story.
We have two users of this trylock. run_local_timers() which pops up
quite often (and you patched here) and the other is
get_next_timer_interrupt(). What do you suggest we do here? It is
basically the same thing.
It's different as it CANNOT fail on UP. That's called from the idle
code and there is no way that anything holds that lock on UP when idle
runs.

Thanks,

	tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help