Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1607988imm; Thu, 14 Jun 2018 00:29:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5EiCe+TvO7IGGF3sA/X6OzTTSAlGTLTjrfyrkavjufHIvr3bGmQ986Fe3kDB5q2GLSEq6 X-Received: by 2002:a17:902:1a2:: with SMTP id b31-v6mr1667722plb.279.1528961372073; Thu, 14 Jun 2018 00:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528961372; cv=none; d=google.com; s=arc-20160816; b=P0KjluDF12hS+JDXcdUsboxiMgOiLtosgs4bsDhrMbGDfQY3wV2FQf4L/yZ7zBkGdO 2AcYWPrXtf8I95TCVKNY/0jSyZ+bK317Vz3go59s9k1C1nZiF/uu00p7M0X0C8eR1C/z 0jhl12UtpFgj1Rld8MenR7tf4EUVszOSr545KFgSnxL7MaBhbnkgK6x6JTyX8tTR5FAo YfqGt9H/D9k2xmH0QYjNMHc3r4gxtVy2dbY4srcQQOnaiITGpbg95/bxhYsrgDyTXUeQ RC5DcVp00vfT+v3sjrzJctuUsy1MdF0v3vSkN7vOxX+My1hBU78fb/BgfHSuLd8xFeyq GKGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=uFo+4280IEUw/LA1lX0RoWmaZu+QWwk/X/mjxzvf2ow=; b=UG5fpM0x9PgLPK7tT8dlsvam5KX8rZv4KL9t8TsTUDRJofDW8xxRKdKbt3Lsre3eTL 76WsZoCC+fVLAbc5gKhqrD/forQqKVQ0vJzkGZf3nckf9siE262SvpNGHqQA2CcGVGnE 9Ew17bq8ItuD+nhQnprBdHGEoqS7AbGvECKLDq5plRizbYAeocT2LzuQ7U7Bdq92dnFP wi9xuz5Ai3j+GKj+uhGaIwpPlqK7obGtKKtd6DsGu4OZWalqhFxJNITMa25t8IUyCI3Y ab66QdAoJCjCFPAA6UeAKol1op13U+8VdCqPlx3PO5UPc38UM4HGKmns60dpGJoDFHdf gT8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12-v6si4578533pfd.348.2018.06.14.00.29.17; Thu, 14 Jun 2018 00:29:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754688AbeFNH2v (ORCPT + 99 others); Thu, 14 Jun 2018 03:28:51 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40040 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752781AbeFNH2t (ORCPT ); Thu, 14 Jun 2018 03:28:49 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76A2B87AC7; Thu, 14 Jun 2018 07:28:48 +0000 (UTC) Received: from ming.t460p (ovpn-12-72.pek2.redhat.com [10.72.12.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DDFAD111D3CB; Thu, 14 Jun 2018 07:28:33 +0000 (UTC) Date: Thu, 14 Jun 2018 15:28:29 +0800 From: Ming Lei To: Christoph Hellwig Cc: Jens Axboe , Alexander Viro , Kent Overstreet , David Sterba , Huang Ying , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , "Darrick J . Wong" , Coly Li , Filipe Manana , Randy Dunlap Subject: Re: [PATCH V6 15/30] block: introduce bio_clone_chunk_bioset() Message-ID: <20180614072828.GA26621@ming.t460p> References: <20180609123014.8861-1-ming.lei@redhat.com> <20180609123014.8861-16-ming.lei@redhat.com> <20180613145654.GE4693@infradead.org> <20180614020137.GF19828@ming.t460p> <20180614063920.GA10284@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180614063920.GA10284@infradead.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 14 Jun 2018 07:28:48 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 14 Jun 2018 07:28:48 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 13, 2018 at 11:39:20PM -0700, Christoph Hellwig wrote: > On Thu, Jun 14, 2018 at 10:01:38AM +0800, Ming Lei wrote: > > Bounce limits the max pages as 256 will do bio splitting, so won't need > > this change. > > Behavior for the bounce code does not change with my patch. > > The important points are: > > - the default interface (bio_clone_bioset in this case) should always > operate on full biosets > - if the bounce code needs bioves limited to single pages it should > be treated as the special case > - given that the bounce code is inside the block layer using the > __-prefixed internal interface is perfectly fine > - last but not least I think the parameter switching the behavior > needs a much more descriptive name as suggested in my patch Fair enough, will switch to this way and avoid DM's change, even though it is a dying interface. Thanks, Ming