* [PATCH] Fix raid5 on sparc
@ 2001-01-10 0:48 Anton Blanchard
0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2001-01-10 0:48 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Hi,
On sparc the length of an xor block must be a multiple of 128 bytes.
Bad things happen otherwise.
Anton
Index: xor.c
===================================================================
RCS file: /cvs/linux/drivers/md/xor.c,v
retrieving revision 1.3
diff -u -r1.3 xor.c
--- xor.c 2000/12/06 13:30:36 1.3
+++ xor.c 2001/01/10 00:43:02
@@ -58,7 +58,11 @@
static struct xor_block_template *template_list;
/* The -6*32 shift factor colors the cache. */
+#ifdef __sparc__
+#define BENCH_SIZE (PAGE_SIZE)
+#else
#define BENCH_SIZE (PAGE_SIZE-6*32)
+#endif
static void
do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-10 0:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-10 0:48 [PATCH] Fix raid5 on sparc Anton Blanchard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.