lkml.org 
[lkml]   [2010]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH] introduce sys_membarrier(): process-wide memory barrier (v5)
From
Date
On Thu, 2010-01-21 at 11:22 -0500, Mathieu Desnoyers wrote:
> * Steven Rostedt (rostedt@goodmis.org) wrote:

> > You may also need spin_lock_irqsave, et al. variants too.
>
> Yep, or we simply use the local_irq_save/restore separately. That could
> be a good idea given that only few specialized sites are affected.

If it gets used more often, then we need to consider RT. RT modifies
spin_lock_irqsave into a standard mutex that does not disable
interrupts. But if something does:

local_irq_save(flags);
spin_lock_mb(&lock);
[...]

Then it will break RT (if lock is to be converted).

-- Steve




\
 
 \ /
  Last update: 2010-01-21 17:35    [W:0.099 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site