Skip to content

locking: Fix racy reads of owner->on_cpu

Kefeng Wang lkml 1 version Applied

Status from this message: The following commit has been merged into the locking/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesApplied

Changes in v2 from the cover letter

- adding owner_on_cpu() refactor, shared by mutex/rtmutex/rwsem

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2locking: Make owner_on_cpu() into <linux/sched.h>include/linux/sched.h kernel/locking/mutex.c kernel/locking/rtmutex.c +1 more+13 -210 replies
2/2locking: Mark racy reads of owner->on_cpuinclude/linux/sched.h+1 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWaiman Long
SeriesA-b
1/2
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] locking: Fix racy reads of owner->on_cpu

v2:
- adding owner_on_cpu() refactor, shared by mutex/rtmutex/rwsem

v1: https://lore.kernel.org/all/[email protected]/

Kefeng Wang (1):
locking: Make owner_on_cpu() into <linux/sched.h>

Marco Elver (1):
locking: Mark racy reads of owner->on_cpu

 include/linux/sched.h    |  9 +++++++++
 kernel/locking/mutex.c   | 11 ++---------
 kernel/locking/rtmutex.c |  5 ++---
 kernel/locking/rwsem.c   |  9 ---------
 4 files changed, 13 insertions(+), 21 deletions(-)
Signature · 1 line
2.26.2