Re: [ANNOUNCE] 3.2.9-rt17

From: Steven Rostedt
Date: Thu Mar 08 2012 - 15:01:51 EST


On Thu, 2012-03-08 at 20:48 +0100, Peter Zijlstra wrote:
> On Thu, 2012-03-08 at 13:42 -0500, Steven Rostedt wrote:
> > cpu_chill_on_lock().
>
> I think what you were hinting at is:
>
> spin_lock(&lock);
> spin_unlock(&lock);

Exactly.

>
> which is the rt_mutex implementation of spin_unlock_wait(). No new
> function needed for that.

Yes but...
>
> Trouble is that you cannot use inode->i_lock as explained..

Right!


What I was hinting at was that the spin_lock() can boost, but it could
also fail if there was a deadlock detected, and it wouldn't cause the
system to hang.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/