dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Heinz Mauelshagen <heinzm@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [PATCH 1/6] dm raid45 target: export region hash functions and add a needed one
Date: Thu, 18 Jun 2009 22:01:18 +0200	[thread overview]
Message-ID: <1245355278.21548.22.camel@o> (raw)
In-Reply-To: <87672FCF-4B8D-45F8-9DA0-E4BD3E492ABE@redhat.com>

On Thu, 2009-06-18 at 11:39 -0500, Jonathan Brassow wrote:
> Eliminate the 3rd argument to that function.  You can use  
> 'dm_rh_bio_to_region'.

No, I can't, because I'm keeping track of regions per single disk as in
the mirroring code rather than dividing the whole sets capacity into
regions. This is because a disk is divided into 2^N sized chunks and
regions have to be 2^M >= 2^N sized.

See caller side in dm-raid45.c, function do_io().

Heinz

> 
>   brassow
> 
> On Jun 15, 2009, at 12:21 PM, heinzm@redhat.com wrote:
> 
> >
> > +void dm_rh_delay_by_region(struct dm_region_hash *rh,
> > +			   struct bio *bio, region_t region)
> > +{
> > +	struct dm_region *reg;
> > +
> > +	/* FIXME: locking. */
> > +	read_lock(&rh->hash_lock);
> > +	reg = __rh_find(rh, region);
> > +	bio_list_add(&reg->delayed_bios, bio);
> > +	read_unlock(&rh->hash_lock);
> > +}
> > +EXPORT_SYMBOL_GPL(dm_rh_delay_by_region);
> > +
> > void dm_rh_stop_recovery(struct dm_region_hash *rh)
> > {
> > 	int i;
> 
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

      reply	other threads:[~2009-06-18 20:01 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-15 17:21 [PATCH 1/6] dm raid45 target: export region hash functions and add a needed one heinzm
2009-06-16 14:09 ` Christoph Hellwig
2009-06-16 14:51   ` Heinz Mauelshagen
2009-06-16 17:55     ` Dan Williams
2009-06-16 19:11       ` Heinz Mauelshagen
2009-06-16 19:48         ` Dan Williams
2009-06-16 22:46         ` Neil Brown
2009-06-18 16:08           ` Jonathan Brassow
2009-06-19  1:43           ` Neil Brown
2009-06-19 10:33             ` Heinz Mauelshagen
2009-06-21  0:32               ` Dan Williams
2009-06-21 12:06               ` Neil Brown
2009-06-22 12:25                 ` Neil Brown
2009-06-22 19:10                 ` Heinz Mauelshagen
2009-07-02 12:52                   ` Heinz Mauelshagen
2009-07-06  3:21                     ` Neil Brown
2009-07-07 18:38                       ` Doug Ledford
2009-07-10 15:23                         ` Heinz Mauelshagen
2009-07-11 12:44                           ` Doug Ledford
2009-07-12  2:56                             ` Dan Williams
2009-07-08 18:56                       ` Heinz Mauelshagen
2009-06-18 16:39 ` Jonathan Brassow
2009-06-18 20:01   ` Heinz Mauelshagen [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=1245355278.21548.22.camel@o \
    --to=heinzm@redhat.com \
    --cc=dm-devel@redhat.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 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).