Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61334C433E1 for ; Tue, 23 Mar 2021 11:29:46 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D8D5861993 for ; Tue, 23 Mar 2021 11:29:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D8D5861993 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616498984; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=j20bSJeCuRY06xbZL8AH0biSHusV1VJXu8D/JwRFzVQ=; b=N8aZVfUqLd/+jBSaA7TKOG07s4iiLIBY2qiT/boVkV9MWM8jiXnmD38h05VT6cSSbFVUQ0 aS+U0u618/jvUSwMZnDGv5hQtG66ez5kMCfOtijHZAKnt//uYfFDXzXo7IlSqoIRtBPTtP b+pbMN3ZRIHy2C/LqvAqthc4OZk/DVM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-404-lv2Vx9sXMuO47-qyVW1T8g-1; Tue, 23 Mar 2021 07:29:42 -0400 X-MC-Unique: lv2Vx9sXMuO47-qyVW1T8g-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4169F800D53; Tue, 23 Mar 2021 11:29:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 146AC60BE5; Tue, 23 Mar 2021 11:29:38 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AB1854BB7C; Tue, 23 Mar 2021 11:29:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12NBTZ18023992 for ; Tue, 23 Mar 2021 07:29:35 -0400 Received: by smtp.corp.redhat.com (Postfix) id 70EAF60C0F; Tue, 23 Mar 2021 11:29:35 +0000 (UTC) Received: from T590 (ovpn-13-171.pek2.redhat.com [10.72.13.171]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 19B9A5FCBE; Tue, 23 Mar 2021 11:29:23 +0000 (UTC) Date: Tue, 23 Mar 2021 19:29:18 +0800 From: Ming Lei To: Mike Snitzer Message-ID: References: <20210318164827.1481133-1-ming.lei@redhat.com> <20210318164827.1481133-7-ming.lei@redhat.com> <20210319174422.GD9938@redhat.com> MIME-Version: 1.0 In-Reply-To: <20210319174422.GD9938@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: dm-devel@redhat.com Cc: Jens Axboe , linux-block@vger.kernel.org, dm-devel@redhat.com, Jeffle Xu , Christoph Hellwig Subject: Re: [dm-devel] [RFC PATCH V2 06/13] block: add new field into 'struct bvec_iter' X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, Mar 19, 2021 at 01:44:22PM -0400, Mike Snitzer wrote: > On Thu, Mar 18 2021 at 12:48pm -0400, > Ming Lei wrote: > > > There is a hole at the end of 'struct bvec_iter', so put a new field > > here and we can save cookie returned from submit_bio() here for > > supporting bio based polling. > > > > This way can avoid to extend bio unnecessarily. > > > > Signed-off-by: Ming Lei > > --- > > include/linux/bvec.h | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/include/linux/bvec.h b/include/linux/bvec.h > > index ff832e698efb..61c0f55f7165 100644 > > --- a/include/linux/bvec.h > > +++ b/include/linux/bvec.h > > @@ -43,6 +43,15 @@ struct bvec_iter { > > > > unsigned int bi_bvec_done; /* number of bytes completed in > > current bvec */ > > + > > + /* > > + * There is a hole at the end of bvec_iter, define one filed to > > s/filed/field/ > > > + * hold something which isn't relate with 'bvec_iter', so that we can > > s/relate/related/ > or > s/isn't relate with/doesn't relate to/ > > > + * avoid to extend bio. So far this new field is used for bio based > > s/to extend/extending/ > > > + * pooling, we will store returning value of underlying queue's > > s/pooling/polling/ > Good catch, will fix all in V3. -- Ming -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel