public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* bogus barriers in sym53c8xx_2?
@ 2003-08-19 23:49 David Mosberger
  2003-08-20  3:26 ` Matthew Wilcox
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Mosberger @ 2003-08-19 23:49 UTC (permalink / raw)
  To: linux-ia64

In drivers/scsi/sym53c8xx_2/sym_misc.h we find:

#elif	defined	__ia64__
#define __READ_BARRIER()	__asm__ volatile("mf.a; mf" : : : "memory")
#define __WRITE_BARRIER()	__asm__ volatile("mf.a; mf" : : : "memory")

based on the comments and the other implementations, these barriers
are bogus and the "mf.a" should be dropped.

Anyone know who wrote this code originally and why the mf.a was added?

mf.a is very slow and should be avoided except were truly needed.

	--david

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-21 19:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-19 23:49 bogus barriers in sym53c8xx_2? David Mosberger
2003-08-20  3:26 ` Matthew Wilcox
2003-08-20  3:43 ` Anton Blanchard
2003-08-21 19:34 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox