[PATCH 1/7] Add die_spin_lock_{irqsave,irqrestore}
David Laight
David.Laight at ACULAB.COM
Tue Feb 24 01:56:14 PST 2015
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
More information about the linux-arm-kernel
mailing list