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

From: Kefeng Wang
Date: Fri Dec 03 2021 - 02:48:56 EST


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

v1: https://lore.kernel.org/all/20211202101238.33546-1-elver@xxxxxxxxxx/

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(-)

--
2.26.2