Re: [PATCH v2 1/1] psi: stop relying on timer_pending for poll_work rescheduling

From
Peter Zijlstra <peterz@infradead.org>
Date
2021-07-01 09:00:19
Also in
linux-mediatek, lkml
Reply to
Suren Baghdasaryan, 2021-06-30
On Wed, Jun 30, 2021 at 01:51:51PM -0700, Suren Baghdasaryan wrote:
quoted hunk ↗ jump to hunk
+	/* cmpxchg should be called even when !force to set poll_scheduled */
+	if (atomic_cmpxchg(&group->poll_scheduled, 0, 1) && !force)
 		return;
Why is that a cmpxchg() ?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (11 messages) 11 messages, 3 authors, last reply 2021-07-07
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