Matthew Wilcox <[EMAIL PROTECTED]> wrote: > > > If I remember correctly, the ?mb() routines _were_ the original > > > SMP memory barriers. > > > > Would it be worth renaming the mb/rmb/wmb to io_mb/io_rmb/io_wmb? After > > all, I believe they should only be used to flush I/O memory accesses. This > > would, I think, make the distinction between memory barriers for I/O and > > memory barriers for SMP more obvious. > > Are you joking or genuinely confused?
Must be the latter. As far as I know memory barriers are only used for I/O and SMP. I don't see where else they should be required. Of course, the tiny bit of documentation in the kernel sources isn't much help; it doesn't even mention the smp_*mb() functions. David
