From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: 2 HBA's and Multipath.
Date: Thu, 11 Apr 2002 11:49:59 +0200 [thread overview]
Message-ID: <20020411094959.GE3256@colombina.comedia.it> (raw)
In-Reply-To: <20020408200445Z313701-22651+2147@vger.kernel.org>
On Mon, Apr 08, 2002 at 03:03:00PM -0500, SoulBlazer wrote:
> What about write balancing ?
>
> I would also be interested in discussing a possible patch to the raid code to
> do write/read balancing over N hba's if it is that trivial.
the multipath_read_balance routine is actually used both for reading and writing
besides with multipath we don't need to check the head position of the disk
since they are supposed to be the same (if the concept of head position has
any sense with your storage, which i strongly doubt).
what we would need is adding an
int last_used;
to struct multipath_private_data
in include/linux/raid/multipath.h
then rewrite multipath_read_balance in drivers/md/multipath.c
to look something like this.
static int multipath_read_balance (multipath_conf_t *conf)
{
int disk;
for (disk = conf->last_used + 1; disk != conf->last_used; disk++) {
if (disk > conf->raid_disks)
disk = 0;
if (conf->multipaths[disk].operational)
return disk;
}
BUG();
return 0;
}
that's all folks, unless i did some very big fuck-up in the code
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
next prev parent reply other threads:[~2002-04-11 9:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-08 19:02 2 HBA's and Multipath SoulBlazer
2002-04-08 19:16 ` Luca Berra
2002-04-08 20:03 ` SoulBlazer
2002-04-11 9:49 ` Luca Berra [this message]
2002-04-19 16:18 ` SoulBlazer
2002-04-19 18:28 ` SoulBlazer
2002-04-19 21:58 ` Luca Berra
2002-04-23 21:45 ` SoulBlazer
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=20020411094959.GE3256@colombina.comedia.it \
--to=bluca@comedia.it \
--cc=linux-raid@vger.kernel.org \
/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