]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
Revert "rwsem-rt: Do not allow readers to nest"
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 25 Feb 2015 11:16:43 +0000 (12:16 +0100)
committerMichal Sojka <sojka@merica.cz>
Sun, 13 Sep 2015 07:47:22 +0000 (09:47 +0200)
commit65242d9f17acc6c1628b2f30120aeaefcc1e9d15
tree68a06d73c5fd69a8a550543271431f01ba18b99c
parent5564ad9ae316dbf9b6929f7ef73507a94e52c009
Revert "rwsem-rt: Do not allow readers to nest"

This behaviour is required by cpufreq and its logic is "okay": It does a
read_lock followed by a try_read_lock.
Lockdep warns if one try a read_lock twice in -RT and vanilla so it
should be good. We still only allow multiple readers as long as it is in
the same process.

Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
include/linux/rwsem_rt.h
kernel/locking/rt.c