[PATCH 1/7] Add die_spin_lock_{irqsave,irqrestore}

From
David Laight <hidden>
Date
2015-02-24 09:57:21
Also in
linuxppc-dev, lkml
Reply to
Ingo Molnar, 2015-02-24
From: Ingo Molnar
...
So why not trylock and time out here after a few seconds,
instead of indefinitely supressing some potentially vital
output due to some other CPU crashing/locking with the lock
held?
I've used that for status requests that usually lock a table
to get a consistent view.
If trylock times out assume that the data is actually stable
and access it anyway. Remember the pid doing the access and
next time it tries to acquire the same lock do a trylock with
no timeout.
That way if (when) there is a locking fubar (or a driver oops
with a lock held) at least some of the relevant status commands
will work.

	David
Thread (14 messages) 14 messages, 5 authors, last reply 2015-02-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help