From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 6/6] dm: introduce dm_ask_for_duplicate_bios Date: Mon, 28 Apr 2014 11:45:36 -0400 Message-ID: <20140428154536.GA28470@redhat.com> References: <20140425185056.GA5388@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mikulas Patocka Cc: dm-devel@redhat.com, Edward Thornber , "Alasdair G. Kergon" List-Id: dm-devel.ids On Mon, Apr 28 2014 at 11:09am -0400, Mikulas Patocka 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.