From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.9]:34034 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757489AbcB1QIC (ORCPT ); Sun, 28 Feb 2016 11:08:02 -0500 Date: Sun, 28 Feb 2016 08:08:01 -0800 From: Christoph Hellwig To: Boaz Harrosh Cc: Ming Lei , lsf-pc@lists.linuxfoundation.org, linux-block@vger.kernel.org, Linux FS Devel Subject: Re: [Lsf-pc] [LSF/MM ATTEND] block: multipage bvecs Message-ID: <20160228160801.GB12881@infradead.org> References: <56D2D757.2000204@plexistor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56D2D757.2000204@plexistor.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Feb 28, 2016 at 01:17:43PM +0200, Boaz Harrosh wrote: > I don't know if you ever tried it but I did. If I take a regular > SSD disk or a PCIE flash card that I have in my machine and > I stick a pointer to a page and bv_len = PAGE_SIZE * 8 and call > submit_bio, I get 8 pages worth of IO with a single bvec and it > all just works. No, it will break in all kinds of places. Also you really should never just setup bvecs yourself, please always use bio_add_page!