kernel_samsung_a53x/kernel/locking
Minchan Kim f19a9560cc locking/rwlocks: introduce write_lock_nested
In preparation for converting bit_spin_lock to rwlock in zsmalloc so
that multiple writers of zspages can run at the same time but those
zspages are supposed to be different zspage instance.  Thus, it's not
deadlock.  This patch adds write_lock_nested to support the case for
LOCKDEP.

[minchan@kernel.org: fix write_lock_nested for RT]
  Link: https://lkml.kernel.org/r/YZfrMTAXV56HFWJY@google.com
[bigeasy@linutronix.de: fixup write_lock_nested() implementation]
  Link: https://lkml.kernel.org/r/20211123170134.y6xb7pmpgdn4m3bn@linutronix.de

Link: https://lkml.kernel.org/r/20211115185909.3949505-8-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Mike Galbraith <umgwanakikbuti@gmail.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-11-19 17:44:05 +01:00
..
lock_events.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lock_events.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lock_events_list.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lockdep.c lockdep: Fix block chain corruption 2024-11-18 12:10:56 +01:00
lockdep_internals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lockdep_proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lockdep_states.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
locktorture.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mcs_spinlock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mutex-debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mutex-debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mutex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mutex.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
osq_lock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
percpu-rwsem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qrwlock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qspinlock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qspinlock_paravirt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qspinlock_stat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtmutex-debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtmutex-debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtmutex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtmutex.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtmutex_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rwsem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rwsem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
semaphore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spinlock.c locking/rwlocks: introduce write_lock_nested 2024-11-19 17:44:05 +01:00
spinlock_debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test-ww_mutex.c locking/ww_mutex/test: Fix potential workqueue corruption 2024-11-18 11:43:11 +01:00