Memory barriers and spin_unlock safety

Alan Cox alan at
Wed Mar 8 05:18:16 EST 2006

On Maw, 2006-03-07 at 17:36 +0000, David Howells wrote:
> Hmmm... We don't actually have io_wmb()... Should the following be added to
> all archs?
> 	io_mb()
> 	io_rmb()
> 	io_wmb()

What kind of mb/rmb/wmb goes with ioread/iowrite ? It seems we actually
need one that can work out what to do for the general io API ?

More information about the Linuxppc64-dev mailing list