Re: [patch 10/50] locking/rtmutex: Provide rt_mutex_slowlock_locked()

From: Thomas Gleixner
Date: Tue Jul 27 2021 - 15:02:56 EST


On Tue, Jul 27 2021 at 18:20, Valentin Schneider wrote:

> On 13/07/21 17:11, Thomas Gleixner wrote:
>> +/*
>> + * rt_mutex_slowlock - Locking slowpath invoked when fast path fails
>> + * @lock: The rtmutex to block lock
>> + * @state: The task state for sleeping
>> + */
>> +static int __sched rt_mutex_slowlock(struct rt_mutex *lock, unsigned int state)
>> +{
>> + unsigned long flags;
>> + int ret;
>>
>> - debug_rt_mutex_free_waiter(&waiter);
>
> This does end up showing up in rtlock_slowlock_locked(), but disappears
> from the rtmutex path. AFAICT it should show up at the tail of
> __rt_mutex_slowlock_locked().

Indeed.