[openib-general] [PATCH] use mmiowb after doorbell ring
Michael S. Tsirkin
mst at mellanox.co.il
Tue Oct 17 14:37:06 PDT 2006
Quoting r. Roland Dreier <rdreier at cisco.com>:
> Another confusing thing is that asm-i386 defines mb() and rmb() just
> to be compiler barriers,
I see:
#define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
as for mb() - I don't thnk our kernel code uses that so I think userspace
should switch to wmb as well. wmb isjust a compiler barrier on most
arhitectures.
--
MST
More information about the general
mailing list