From: Raz <raziebe@gmail.com>
To: Neil Brown <neilb@suse.de>
Cc: Linux RAID Mailing List <linux-raid@vger.kernel.org>
Subject: raid0 hashing funtion
Date: Sun, 3 May 2009 16:29:11 +0300 [thread overview]
Message-ID: <5d96567b0905030629s3e1ec55coa9f0fc5fb0a3ce2b@mail.gmail.com> (raw)
Neil Hello
I am reading the raid0 code, and I do not understand what is the
rational behind this hashing and spacing ?
I am asking because I am working on the chunk size restrictions.
in raid0_make_request the zone calculation is as follows:
{
sector_t x = sector >> conf->sector_shift;
sector_div(x, (u32)conf->spacing);
zone = conf->hash_table[x];
}
while (sector >= zone->zone_start + zone->sectors)
zone++;
I replaced it with the code :
zone = &conf->strip_zone[0];
while (sector >= zone->zone_start + zone->sectors)
zone++;
and all is fine . why do we need the hashing/spacing complication ?
thank you
raz
next reply other threads:[~2009-05-03 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-03 13:29 Raz [this message]
2009-05-12 22:12 ` raid0 hashing funtion Neil Brown
2009-05-13 13:18 ` Andre Noll
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=5d96567b0905030629s3e1ec55coa9f0fc5fb0a3ce2b@mail.gmail.com \
--to=raziebe@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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