From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753678AbaE0T77 (ORCPT ); Tue, 27 May 2014 15:59:59 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:62862 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752438AbaE0T75 (ORCPT ); Tue, 27 May 2014 15:59:57 -0400 Date: Tue, 27 May 2014 12:59:54 -0700 From: Kent Overstreet To: Christoph Hellwig Cc: Jens Axboe , Mikulas Patocka , Mike Snitzer , "Alasdair G. Kergon" , linux-kernel@vger.kernel.org, dm-devel@redhat.com Subject: Re: [dm-devel] [PATCH] block: flush queued bios when the process blocks Message-ID: <20140527195954.GF2276@kmo> References: <5384AA79.4010206@kernel.dk> <5384B26D.1000703@kernel.dk> <5384CE82.90601@kernel.dk> <20140527181415.GA8739@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140527181415.GA8739@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 27, 2014 at 11:14:15AM -0700, Christoph Hellwig wrote: > On Tue, May 27, 2014 at 11:42:26AM -0600, Jens Axboe wrote: > > Except such a thing already exists, there are unplug callback > > chains. All I'm asking is that you look into how feasible it would > > be to use something like that, instead of reinventing the wheel. > > I suspect the code from MD could be lifted quite easily. > > It would be nicer to move it up to the block layer entirely, but when I > tried that a while ago I ran into issues that I unfortunately don't > remember. How's md do it?