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

From: Waiman Long
Date: Fri Dec 03 2021 - 10:49:28 EST


On 12/3/21 02:59, Kefeng Wang wrote:
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(-)

LGTM

Acked-by: Waiman Long <longman@xxxxxxxxxx>