From: Andreas Schwab <schwab@suse.de>
To: Evan Felix <evan.felix@pnl.gov>
Cc: linux-raid <linux-raid@vger.kernel.org>,
linux-kernel@vger.kernel.org, neilb@cse.unsw.edu.au
Subject: Re: [PATCH] Linux Raid5/6 abover 2 Terabytes
Date: Wed, 07 Apr 2004 01:02:03 +0200 [thread overview]
Message-ID: <jey8p8ww0k.fsf@sykes.suse.de> (raw)
In-Reply-To: <1081285240.2219.43.camel@e-linux> (Evan Felix's message of "Tue, 06 Apr 2004 14:00:40 -0700")
Evan Felix <evan.felix@pnl.gov> writes:
> Here is a patch that fixes a major issue in the raid5/6 code. It seems
> that the code:
>
> logical_sector = bi->bi_sector & ~(STRIPE_SECTORS-1);
> (sector_t) = (sector_t) & (constant)
>
> that the right side of the & does not get extended correctly when the
> constant is promoted to the sector_t type. I have CONFIG_LBD turned on
> so sector_t should be 64bits wide. This fails to properly mask the
> value of 4294967296 (2TB/512) to 4294967296. in my case it was coming
> out 0. this cause the loop following this code to read from 0 to
> 4294967296 blocks so it could write one character.
>
> As you might imagine this makes a format of a 3.5TB filesystem take a
> very long time.
>
> Here is the patch:
Alternatively replace ~(STRIPE_SECTORS-1) by -STRIPE_SECTORS, which
doesn't need a cast.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2004-04-06 23:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-06 21:00 [PATCH] Linux Raid5/6 abover 2 Terabytes Evan Felix
2004-04-06 23:02 ` Andreas Schwab [this message]
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=jey8p8ww0k.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=evan.felix@pnl.gov \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).