Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1540838imu; Tue, 20 Nov 2018 20:43:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+fM5Xj6fl3qp6K8Vt1MDwepR5AJoPqcam1I2b+WuERs/6d8DaipmVSdIENpS2rzbAZthr X-Received: by 2002:a63:4613:: with SMTP id t19-v6mr4618240pga.197.1542775394601; Tue, 20 Nov 2018 20:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542775394; cv=none; d=google.com; s=arc-20160816; b=xrQyH2ydX+vhiV5R57Stlc3IHCIMIHXO5BDciBwSRSE8K/bsoYkcEQZslesHuW3zRP ldM8u0pj9BnODPCkZCID8lFVKYcCxbhruofPBb5wUa5Lwa43Uui2OunBVInWlIlTQiMU gDVg74AupzzB31pi1SGNxoBWXOZb0E8GjyhUi3+jTVK1C+SntT0f8FK55571GwJ9QG41 TcnL4VPd6nbGRsoLGwXNBK0dZwtAFFT9lZoWi6TPjyzP9UsTKEtDpPjCy6JNK2VgNds3 ca7814LgdGwRmqJfhxWsX1fXFq8rKUb1tCsWeyIpmQizmls6YiANk5MIZYr/N21qDanX RzIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=beNzxtekC3eXWHufu9KYAAFX95VFF++NlzuARk/OlmM=; b=HFSXQWWghCUf7C9yTWyQixGr/uYPv1zvoAi/U+VXZGwGXlRZ/o1McLArNub6kWLSUH Dip2g0xPSp1VisXHnLHzY0xwfs9zQ0tukBy00CTW7O1Npa1ZbzI3MJZNfcfMKEx+hMtZ LllzzaN3E+83HnhOdn7jwgsUsz9cFBR0KJjekz7aFY+2VYTyr/B26uV8oiYpU0Iccy0C Df5VHwMuo/J+8wlqPeKSbpwYMbo1m5H1UTpUygptFqqZ6xNtQw7T8BDoi6zhdGgCUd6G t1CFu7afUO9VWCT9TnQu7i3S+lumtBn07okzk4m6YixorrcJNwS5tJB8MmqBfmSzp+Hz 9SRA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64-v6si49448024pli.135.2018.11.20.20.42.58; Tue, 20 Nov 2018 20:43:14 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726993AbeKUPOz (ORCPT + 99 others); Wed, 21 Nov 2018 10:14:55 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46812 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbeKUPOz (ORCPT ); Wed, 21 Nov 2018 10:14:55 -0500 Received: by mail-pl1-f194.google.com with SMTP id t13so3573825ply.13; Tue, 20 Nov 2018 20:42:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=beNzxtekC3eXWHufu9KYAAFX95VFF++NlzuARk/OlmM=; b=OtGo04Uq2QpF0OwfLkHXvcJkd6Qgo4FtDHwcw1PLV7ZutmqvcCH9n05BcvPbN9epud AvrARewg1IxOuuZTbEv9Ff+I4p2oKJrQFirTu4nNJjN62JARofS2egUQjF6gf4NtlgZg hOgNGZjV/GNFEjVlNOb0eNQAIBmETBl0UtZPT96Pg/HiUNFaflL6X228M/ljpjBrH++R EYnvlnf/oYyEUDr1mSdmlq86GoCwqRJB/whBF2jdYjpPkC4I3OQwOD/QDlzZ7x1YKVmW ViWCVfp/oq+uz8+m4hxO8G+QSWOQ4QjBZtqcFQsJxckJZTaAhZFumjnq8/y6nx/dZtFV K0zQ== X-Gm-Message-State: AA+aEWY/NG424koZUjf0EADULCbDS5H/+YCOrrB9fSb+KASvNWPdknGE nv/U3XdrSFC+YYo+38hmtB0= X-Received: by 2002:a63:f006:: with SMTP id k6mr4563792pgh.259.1542775327338; Tue, 20 Nov 2018 20:42:07 -0800 (PST) Received: from ?IPv6:2601:647:4800:973f:8a0:7611:3223:f4db? ([2601:647:4800:973f:8a0:7611:3223:f4db]) by smtp.gmail.com with ESMTPSA id v20-v6sm49421268pfm.114.2018.11.20.20.42.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 20:42:06 -0800 (PST) Subject: Re: [PATCH V10 09/19] block: introduce bio_bvecs() From: Sagi Grimberg To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Kent Overstreet , Mike Snitzer , dm-devel@redhat.com, Alexander Viro , linux-fsdevel@vger.kernel.org, Shaohua Li , linux-raid@vger.kernel.org, linux-erofs@lists.ozlabs.org, David Sterba , linux-btrfs@vger.kernel.org, "Darrick J . Wong" , linux-xfs@vger.kernel.org, Gao Xiang , Theodore Ts'o , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-10-ming.lei@redhat.com> <20181116134541.GH3165@lst.de> <002fe56b-25e4-573e-c09b-bb12c3e8d25a@grimberg.me> <20181120161651.GB2629@lst.de> <53526aae-fb9b-ee38-0a01-e5899e2d4e4d@grimberg.me> <20181121005902.GA31748@ming.t460p> <2d9bee7a-f010-dcf4-1184-094101058584@grimberg.me> <20181121034415.GA8408@ming.t460p> <2a47d336-c19b-6bf4-c247-d7382871eeea@grimberg.me> Message-ID: <7378bf49-5a7e-5622-d4d1-808ba37ce656@grimberg.me> Date: Tue, 20 Nov 2018 20:42:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <2a47d336-c19b-6bf4-c247-d7382871eeea@grimberg.me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Yeah, that is the most common example, given merge is enabled >> in most of cases. If the driver or device doesn't care merge, >> you can disable it and always get single bio request, then the >> bio's bvec table can be reused for send(). > > Does bvec_iter span bvecs with your patches? I didn't see that change? Wait, I see that the bvec is still a single array per bio. When you said a table I thought you meant a 2-dimentional array... Unless I'm not mistaken, I think that the change is pretty simple then. However, nvme-tcp still needs to be bio aware unless we have some abstraction in place.. Which will mean that nvme-tcp will need to open-code bio_bvecs.