On Tue, Nov 20, 2007 at 05:02:20PM +0100, Nick Piggin wrote:

> + TYPE            FULL                    CACHEABLE (SMP CONDITIONAL) IO
> + =========  ======================= =========================== ============
> + GENERAL    mb()                 smp_mb()                    io_mb()
> + WRITE           wmb()                   smp_wmb()                   io_wmb()
> + READ            rmb()                   smp_rmb()                   io_rmb()
> + DATA DEP.  read_barrier_depends()  smp_read_barrier_depends()

A while ago I went through the kernel looking at the uses mb(), wmb() and
rmb() and found that every use was either fishy or should have been a
smp_mb(), smp_wmb() or wmp_rmb().  Which leads me to the question if there
is any need for the non-smp_ variants left or can we just bury them?

  Ralf
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to