Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S947407AbcJaX4p (ORCPT ); Mon, 31 Oct 2016 19:56:45 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:32918 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S946955AbcJaX4l (ORCPT ); Mon, 31 Oct 2016 19:56:41 -0400 MIME-Version: 1.0 In-Reply-To: <20161031153915.GL30919@infradead.org> References: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> <1477728600-12938-29-git-send-email-tom.leiming@gmail.com> <20161031153915.GL30919@infradead.org> From: Ming Lei Date: Tue, 1 Nov 2016 07:56:39 +0800 Message-ID: Subject: Re: [PATCH 28/60] block: introduce QUEUE_FLAG_SPLIT_MP To: Christoph Hellwig Cc: Jens Axboe , Linux Kernel Mailing List , linux-block , Linux FS Devel , "Kirill A . Shutemov" , Jens Axboe , Hannes Reinecke , Mike Christie , Dan Williams , Toshi Kani , Kent Overstreet Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 Lines: 27 On Mon, Oct 31, 2016 at 11:39 PM, Christoph Hellwig wrote: > On Sat, Oct 29, 2016 at 04:08:27PM +0800, Ming Lei wrote: >> Some drivers(such as dm) should be capable of dealing with multipage >> bvec, but the incoming bio may be too big, such as, a new singlepage bvec >> bio can't be cloned from the bio, or can't be allocated to singlepage >> bvec with same size. >> >> At least crypt dm, log writes and bcache have this kind of issue. > > We already have the segment_size limitation for request based drivers. > I'd rather extent it to bio drivers if really needed. Yeah, just found dm actually don't need the flag, and it has its own way for limitting bio size. For bcache, there is only place which need the flag, so we can use max sectors limit to address it or use multiple bio to read & check ony by one. > > But then again we should look into not having this limitation. E.g. > for bcache I'd be really surprised if it's that limited, given that > Kent came up with this whole multipage bvec scheme. As far as I find, the only one which need the flag is bch_data_verify(). Thanks, Ming Lei