Daniel Vidal:
> The rt patch is also downloaded from kernel.org. The exact URL is:
>
> https://www.kernel.org/pub/linux/kernel/projects/rt/3.4/patch-3.4.42-rt57.patch.gz

For the member 'owner', while the original struct mutex definition has a
preproessor condition, struct rtmutex doesn't.

struct mutex {
        :::
#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_SMP)
        struct task_struct      *owner;
#endif
        :::
};

and

struct rt_mutex {
        :::
        struct task_struct      *owner;
        :::
}

So it might be better to use i_mutex.lock.owner regardless CONFIG_DEBUG_MUTEXES
and CONFIG_SMP.
Additionally rtmutex.c defines rt_mutex_set_owner() and you should call
it instead of assgin directly I think.
Obviously you should test it well.


J. R. Okajima

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d

Reply via email to