Skip to content

irq_work: A couple fixes

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2irq_work: Fix racy check on work pending flagkernel/irq_work.c+17 -51 reply
2/2irq_work: Fix racy IRQ_WORK_BUSY flag settingkernel/irq_work.c+5 -211 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSteven Rostedt
1/2A-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] irq_work: A couple fixes

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(-)
Signature · 1 line
1.7.5.4