From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752318AbaE0Q0T (ORCPT ); Tue, 27 May 2014 12:26:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbaE0Q0Q (ORCPT ); Tue, 27 May 2014 12:26:16 -0400 Date: Tue, 27 May 2014 12:26:12 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Jens Axboe cc: Kent Overstreet , linux-kernel@vger.kernel.org, dm-devel@redhat.com, "Alasdair G. Kergon" , Mike Snitzer Subject: Re: [PATCH] block: flush queued bios when the process blocks In-Reply-To: <5384B26D.1000703@kernel.dk> Message-ID: References: <5384AA79.4010206@kernel.dk> <5384B26D.1000703@kernel.dk> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 May 2014, Jens Axboe wrote: > On 2014-05-27 09:23, Mikulas Patocka wrote: > > > The patch adds bio list flushing to the scheduler just besides plug > > flushsing. > > ... which is exactly why I'm commenting. It'd be great to avoid yet one more > scheduler hook for this sort of thing. > > -- > Jens Axboe One could create something like schedule notifier chain, but I'm not sure if it is worth the complexity because of just two users. If more users come in the future, it could be generalized. Mikulas