Thread (20 messages) 20 messages, 4 authors, 2019-01-29

Re: [PATCH v3 5/5] psi: introduce psi monitor

From: Peter Zijlstra <peterz@infradead.org>
Date: 2019-01-29 15:17:16
Also in: linux-doc, linux-mm, lkml

On Tue, Jan 29, 2019 at 01:38:43PM +0100, Peter Zijlstra wrote:
On Thu, Jan 24, 2019 at 01:15:18PM -0800, Suren Baghdasaryan wrote:
quoted
+			atomic_set(&group->polling, polling);
+			/*
+			 * Memory barrier is needed to order group->polling
+			 * write before times[] read in collect_percpu_times()
+			 */
+			smp_mb__after_atomic();
That's broken, smp_mb__{before,after}_atomic() can only be used on
atomic RmW operations, something atomic_set() is _not_.
Also; the comment should explain _why_ not only what.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help