[prev in list] [next in list] [prev in thread] [next in thread]
List: dm-devel
Subject: Re: [dm-devel] [PATCH 6/6] dm: introduce dm_ask_for_duplicate_bios
From: Mike Snitzer <snitzer () redhat ! com>
Date: 2014-04-28 15:45:36
Message-ID: 20140428154536.GA28470 () redhat ! com
[Download RAW message or body]
On Mon, Apr 28 2014 at 11:09am -0400,
Mikulas Patocka <mpatocka@redhat.com> wrote:
>
>
> On Fri, 25 Apr 2014, Mike Snitzer wrote:
> >
> > Hey Mikulas,
> >
> > I'm not immediately seeing how increasing tio->num_bios from within a
> > target's map method, using dm_ask_for_duplicate_bios, will cause DM core
> > to send duplicates.
> >
> > Nothing in DM core actually consumes tio->num_bios -- please advise.
> >
> > Thanks,
> > Mike
>
> tio->num_bios is a pointer. You don't increase tio->num_bios, you increase
> the value it points to. It points to the local variable that is the limit
> of the for loop.
I see, thanks for clarifying.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic