Thread (2 messages) flat view 2 messages, 2 authors, 2007-08-26

Re: [PATCH RT 3/3 - take two ] fix get_monotonic_cycles for latency tracer

From: Frank Ch. Eigler <hidden>
Date: 2007-08-25 11:07:59
Also in: lkml

Steven Rostedt [off-list ref] writes:
[...]
+		 * [...] We don't need to grab
+		 * any locks, we just keep trying until get all the
+		 * calculations together in one state.
+		 *
+		 * In fact, we __cant__ grab any locks. This
+		 * function is called from the latency_tracer which can
+		 * be called anywhere. To grab any locks (including
+		 * seq_locks) we risk putting ourselves into a deadlock.
Perhaps you could add a comment about why the loop, which appears
potentially infinite as written, avoids livelock.  (It looks rather
like a seqlock read loop.)

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