From: Evgeniy Polyakov Subject: bio_vec as scatterlist. Date: Mon, 28 Jul 2008 16:10:48 +0400 Message-ID: <20080728121048.GA13646@2ka.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: Jens Axboe Return-path: Received: from relay.2ka.mipt.ru ([194.85.80.65]:44012 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbYG1MKs (ORCPT ); Mon, 28 Jul 2008 08:10:48 -0400 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Jens. Why does bio has array of bio_vecs and not scatterlists? There is no (or there is?) gain in memory usage, since most if not all block device drivers will have to create a scatterlist just to map bio_vec to hardware. Allocation of the single scatterlist for the whole bio in driver requires to wait for command completion, array of scatterlists eats memory, so... Why bio_vec is not a scatterlist? -- Evgeniy Polyakov