lkml.org 
[lkml]   [2014]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] rtmutex: Handle when top lock owner changes
On Fri, 6 Jun 2014, Thomas Gleixner wrote:
> On Thu, 5 Jun 2014, Steven Rostedt wrote:
> > On Wed, 4 Jun 2014 17:32:37 +0200 (CEST)
> > Thomas Gleixner <tglx@linutronix.de> wrote:
> > + /*
> > + * When we dropped the spinlocks, if the owner of the lock we
> > + * are currently processing changed since we chain walked
> > + * to that lock, we are done with the chain walk. The previous
> > + * owner was obviously running to release it.
> > + */
> > + if (lock && rt_mutex_owner(lock) != task)
> > + goto out_unlock_pi;
>
> NO. You CANNOT derefernce lock after dropping the locks. It might be
> gone already.

The only information we can check is, whether @task changed the
blocked on lock, really.

Thanks,

tglx




\
 
 \ /
  Last update: 2014-06-06 08:21    [W:0.141 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site