From: Bart Van Assche Subject: Re: [PATCH RFC] dm: Fix a bio leak in dec_pending() Date: Fri, 26 Aug 2016 08:34:49 -0700 Message-ID: References: <1e64fe53-ed57-ef97-a077-19a153506e63@sandisk.com> <20160826145740.GB1876@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160826145740.GB1876@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: Kiyoshi Ueda , device-mapper development , ejt@redhat.com List-Id: dm-devel.ids On 08/26/2016 07:57 AM, Mike Snitzer wrote: > On Thu, Aug 25 2016 at 4:57pm -0400, > Bart Van Assche wrote: > >> Ensure that bio_endio() is called if io->error == DM_ENDIO_REQUEUE and >> __noflush_suspending(md) returns false. Posting this as an RFC since I'm >> not really familiar with the dm code. >> >> Fixes: commit 2e93ccc1933d ("dm: suspend: add noflush pushback") >> Signed-off-by: Bart Van Assche >> Cc: Kiyoshi Ueda > > I did reinstate bio-based multipath recently. But I just want to make > sure: you realize that dec_pending() is only ever used by bio-based DM > right? (dm-mq and .request_fn multipath are request-based) Hello Mike, Yes, I am aware that this code is not triggered by my tests. This is something I noticed while reading the dm source code and something I wanted to report. Bart.