mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 17:49:03 +02:00
locking: Remove rt_rwlock_is_contended().
rt_rwlock_is_contended() has no users. It makes no sense to use it as rwlock_is_contended() because it is a sleeping lock on RT and preemption is possible. It reports always != 0 if used by a writer and even if there is a waiter then the lock might not be handed over if the current owner has the highest priority. Remove rt_rwlock_is_contended(). Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20211129174654.668506-3-bigeasy@linutronix.de
This commit is contained in:
parent
9d0df37797
commit
e08f343be0
1 changed files with 0 additions and 6 deletions
|
|
@ -257,12 +257,6 @@ void __sched rt_write_unlock(rwlock_t *rwlock)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(rt_write_unlock);
|
EXPORT_SYMBOL(rt_write_unlock);
|
||||||
|
|
||||||
int __sched rt_rwlock_is_contended(rwlock_t *rwlock)
|
|
||||||
{
|
|
||||||
return rw_base_is_contended(&rwlock->rwbase);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(rt_rwlock_is_contended);
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
||||||
void __rt_rwlock_init(rwlock_t *rwlock, const char *name,
|
void __rt_rwlock_init(rwlock_t *rwlock, const char *name,
|
||||||
struct lock_class_key *key)
|
struct lock_class_key *key)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue