mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] irq_work: A couple fixes
@ 2012-10-30 15:34 Frederic Weisbecker
  2012-10-30 15:35 ` [PATCH 1/2] irq_work: Fix racy check on work pending flag Frederic Weisbecker
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Frederic Weisbecker @ 2012-10-30 15:34 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: LKML, Frederic Weisbecker, Ingo Molnar, Thomas Gleixner,
	Andrew Morton, Steven Rostedt, Paul Gortmaker

Hi,

The first patch is extracted from my printk patches, with changelog
reworked. The second patch is an addition.

And I still wonder if cpu_relax() is enough to prevent the compiler
from correctly reloading work->flags in irq_work_sync() loop.
Do we need ACCESS_ONCE()?

Thanks.

Frederic Weisbecker (2):
  irq_work: Fix racy check on work pending flag
  irq_work: Fix racy IRQ_WORK_BUSY flag setting

 kernel/irq_work.c |   29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-10-31 13:51 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-30 15:34 [PATCH 0/2] irq_work: A couple fixes Frederic Weisbecker
2012-10-30 15:35 ` [PATCH 1/2] irq_work: Fix racy check on work pending flag Frederic Weisbecker
2012-10-30 15:53   ` Steven Rostedt
2012-10-30 15:35 ` [PATCH 2/2] irq_work: Fix racy IRQ_WORK_BUSY flag setting Frederic Weisbecker
2012-10-30 16:26   ` Steven Rostedt
2012-10-30 18:33   ` anish kumar
2012-10-30 18:45     ` Steven Rostedt
2012-10-31 11:06       ` anish kumar
2012-10-31  0:36     ` Frederic Weisbecker
2012-10-31  2:23       ` Steven Rostedt
2012-10-31  2:54         ` Frederic Weisbecker
2012-10-31 11:04         ` anish kumar
2012-10-31 12:59           ` Steven Rostedt
2012-10-31 13:32             ` Frederic Weisbecker
2012-10-31 13:51           ` Steven Rostedt
2012-10-30 15:52 ` [PATCH 0/2] irq_work: A couple fixes Steven Rostedt
2012-10-30 16:25   ` Frederic Weisbecker
2012-10-30 17:13     ` Steven Rostedt
2012-10-30 17:17       ` Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®