[lkml]   [2001]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] Fix raid5 on sparc


On sparc the length of an xor block must be a multiple of 128 bytes.
Bad things happen otherwise.


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-6*32)

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
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:28    [W:0.061 / U:4.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site