From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alasdair G Kergon Subject: Re: [dm-devel] [PATCH 02/13] dm: kill dm_rq_bio_destructor Date: Fri, 18 May 2012 17:43:19 +0100 Message-ID: <20120518164319.GJ29330@agk-dp.fab.redhat.com> References: <20120518155729.GB19388@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: koverstreet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org, dm-devel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, agk-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Junichi Nomura , Mikulas Patocka To: Tejun Heo Return-path: Content-Disposition: inline In-Reply-To: <20120518155729.GB19388-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Fri, May 18, 2012 at 08:57:29AM -0700, Tejun Heo wrote: > Please explain why this is done and how it's safe. Alasdair / dm > folks, can you please ack this? I think it's relying on there being never more than one reference on those bios so that that endio fn, called exactly once, always frees it and there are no dm_puts elsewhere. Alasdair