From: Anton Blanchard <anton@linuxcare.com.au>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix raid5 on sparc
Date: Wed, 10 Jan 2001 11:48:55 +1100 [thread overview]
Message-ID: <20010110114855.X662@linuxcare.com> (raw)
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/
reply other threads:[~2001-01-10 0:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010110114855.X662@linuxcare.com \
--to=anton@linuxcare.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.